Questions tagged as 'ruby-on-rails'

1
answer

SideKiq for multiple domains

I have a production server that will contain multiple clients, and I want to add the sidekiq to manage the image processing queues. However, I do not know how it behaves for multiple domains, that is, does each system have a queue, or will all...
asked by 14.10.2014 / 22:11
1
answer

How to pass parameters dynamically to Rails?

I have a rather complex problem to the extreme. I need to somehow pass parameters dynamically to the params via javascript, to show / hide some fields in a report on user's request. Below is a screen representation: I have a form where th...
asked by 30.10.2014 / 12:31
1
answer

Gem strong parameters not installed

I'm having trouble adding a gem in my project, the gem strong parameters. My version of ruby on rails is 4.1.4. I do not know what's going on. When I give bundle install  WhenIgiveabundleupdatethisappears     
asked by 16.08.2014 / 17:17
2
answers

Mask in text field without using jquery

Does anyone know a gem for ROR that does this job? Add masks to fields like phone, email, date, etc. and let me also create my own masks. Thank you.     
asked by 30.10.2014 / 19:15
1
answer

Null values in check box's

In my application, it is necessary that if the user unchecks all check boxes informed to him, a Array nulo or []. I'm using params[:parametro1][:parametro2_ids] ||= [] after initializing my Action UPDATE, but if I try to...
asked by 11.06.2014 / 15:30
2
answers

accepts_nested_attributes_for in Rails 4

Expensive! I'm having a hard time because I'm new to Rails. I'm trying to generate a form with two templates through Nested Form Rails. It's a simple template. "Engine" has one or more "parts", and "part" has only one "motor". This way...
asked by 11.06.2014 / 21:44
1
answer

Creating a new view on a Controller

In a Rails project, I created a Scaffold Responsability and consequently Rails created the whole basic structure of this Scaffold. I've created a has_and_belongs_to_many relationship between a responsability model and a Knowledge...
asked by 27.05.2014 / 14:28
1
answer

Deploy with Capistrano

I have to run my rails app on a machine and the DBMS (in this case PostgreSQL) on another server. I configured database.yml as follows: production: <<: *default database: nomedobanco username: username password: senha host: ban...
asked by 29.05.2014 / 00:09
1
answer

How to solve the error ActiveRecord :: StatementInvalid: PG :: UndefinedTable in rails?

I'm developing an application in rails and the following error appears in my bank at the time I try to perform a rake db: migrate. I have tried to give a drop in the bank and a create in sequence, however the same error happens. The curious thin...
asked by 18.06.2014 / 17:26
1
answer

How to open a form inside a modal with Rails 4 and Foundation?

I have a product registration in Rails. I am using Zurb-Foundation 5 as lib in Front End. How do I call an include form within a modal window in the Foundation. I created a partial with the form and tried to insert it inside the div to be...
asked by 16.05.2014 / 18:13