Questions tagged as 'ruby-on-rails'

0
answers

text_field with where to search in rails

I'm starting to study rails and I'm trying to search by name and date in a list. I would like to display on the screen inside the show page this search by name and date where am I trying to create the form in the view <form> <%=...
asked by 31.10.2017 / 18:13
0
answers

Problem with Json to load data in gmaps api

I'm using Rails in a college project and added the Gmaps API to my project, in it I want to display multiple points on the map by taking the coordinates of a < in JSON to create the cluster . But the function I did not work in any way, t...
asked by 05.11.2017 / 20:37
1
answer

problem in file format validation with gem paperclip 5.1.0, rails 5

Model has_attached_file :foto validates_attachment_content_type :foto, content_type: /\Aimage\/.*\z/ Error in log Command :: file -b --mime "C:/Users/conta/AppData/Local/Temp/66c9eed121277d8be2df09ce25c4687a20171106-5872-1j1pihz.jpg" [pap...
asked by 06.11.2017 / 05:45
1
answer

RSpec - Testing feature failing because elements are not rendered in test execution

I have a test feature that fails because at the time it runs some HTML elements ( <li data-podcast> ) have not yet been rendered. Does anyone know how I can fix this? RSpec.describe 'Podcasts List', type: :feature do scenario...
asked by 05.08.2017 / 03:31
0
answers

How to filter list of active clients in a given period [closed]

Good morning, everyone. I am developing a management software for a home care company. I have a list of clients that may be active or inactive within a given month. Each customer has a contract value with the company and costs it generates each...
asked by 11.09.2017 / 12:49
1
answer

Retrieve field with join in view in RUBY / RoR

I have a big question, I am a beginner in Ruby, and I am not able to print the value of a field in my view, the result is that. My Model: class Pedido < ActiveRecord::Base has_many :produtos scope :waiting, -...
asked by 23.08.2017 / 19:47
1
answer

See records from the same month

I'm having difficulty searching the sqlite3 database, records for a specific month, I searched the internet but found nothing that could help me. I have an account template that has belongs_to with the class Location that is an enum where it has...
asked by 25.07.2017 / 22:14
1
answer

Passing Date by Ruby on Rails parameter

I'm trying to pass a date clicked as a parameter in order to load another view and I can not do it. The idea is to list all bookings made on the selected day. Controller class ReservasController < ApplicationController ... def search...
asked by 03.08.2017 / 03:11
0
answers

Ruby on Rails doubts

I have this def in models, checked with pry and have values arriving normally, however they do not save in the @inventory variable and below I put the class Inventory too, I wanted to know if anyone could give a help, since jah thank you. p> M...
asked by 17.07.2017 / 21:29
1
answer

Error "bash: ruby: command not found"

I'm trying to install Ruby on Rails on Windows, but I install and whenever I try to use Git BASH in the "Sites" folder that is created in the installation, this error appears. How can I fix it? Command that I try to run: ruby -v     
asked by 17.07.2017 / 22:41