Questions tagged as 'ruby-on-rails'

2
answers

Rails does not accept request

I have a simple API in Rails, it only reads the database, and returns the JSON according to the request. However, I was testing the API, making a request with another device, connected via wireless, and I was not able to get JSON in response....
asked by 15.05.2015 / 13:59
0
answers

Error initializing my application in Rails

My application was already running for some time without problems, I even set the environment in a virtual machine. I had to stop the server and when I went to start again I had this surprises. Below image with generated error. uninitializ...
asked by 08.05.2015 / 14:52
0
answers

Undefined method 'map' for nil: NilClass

I'm having this problem if the validator encounters any errors after submitting the form. I think that may be why my instance variable, @users, is nil? I wrap it in the controller with the before_action, so should not have this problem, corre...
asked by 17.04.2015 / 13:24
1
answer

Template error no rspec-rails

I'm using rspec-rails to test my application, however when testing a view that uses Ransak for filters I get the following return error: 1) admin/cities/index renders a list of admin_cities Failure/Error: render ActionView::Template:...
asked by 23.04.2015 / 20:25
1
answer

Load skrollr.init in the correct way in Rails

I'm using Skrollr in a Rails application as follows: Gem Used: gem 'skrollr-rails' app / assets / javascripts / application.js //= require jquery //= require jquery_ujs //= require turbolinks //= require bootstrap //= require skroll...
asked by 06.05.2015 / 19:08
0
answers

Star rating in my simple-form Rails does not send the value

I'm using a JQuery plugin to style my input field with the "star rating" style, which is the library: link . I call the attribute in the slim as follows: td = f.input :score, label: false, input_html: {class: 'rating'} And then the look...
asked by 20.02.2015 / 22:47
1
answer

Error in the first scaffold in Ruby

I'm trying to learn how to program in Ruby, I created the app and I had an error in the beginning, where I had to remove all the HTTPS files from the GEMFILE folder, changing them all manually to HTTP, so I was able to create the app. Then I cre...
asked by 13.02.2015 / 00:40
1
answer

ActiveRecord labels using I18n

I have the following code: pt-BR.yml activerecord: attributes: city: codigo_municipio: "Código do município" View = label(:city, :codigo_municipio) Expected result: # => <label for="cities_codigo_municipio"...
asked by 10.04.2015 / 15:09
1
answer

RoR application in windows CE

I would like to know if there is any possibility of making a Rails application for Windows CE? We need to make an application to run on a data collector that has Win CE . This device will not have access to the off-line / batch network...
asked by 30.03.2015 / 22:32
1
answer

How to use text_field via ajax

I'm trying to call via ajax a function in a textfield field, I've tried two ways: 1 - From the undefined method remote_function error. <%= f.text_field(:data, class: "form-control", :remote => true, :onchange=>remote_function(:url=>...
asked by 30.01.2015 / 11:40