[Rails] Select fields, Coffeescript and Cocoon

2014-04-23 Thread Werner
Hello, I have select field which after a choice happened, feeds another select field. Using the gem Cocoon to duplicate this set of select fields. My problem now is to find a solution that the coffee script supplies values for each select field-set separately. My code: form %= render

Re: [Rails] How to has_one/belongs_to association only return the objects unassociated in combobox?

2014-04-23 Thread Lauree Roberts
As per readme of simple_form (https://github.com/plataformatec/simple_form), the f.association helper is available with the collection option which accepts the collection of objects that you want to provide for select list. You can use : f.association :driver, collection: Driver.unassociated,

[Rails] Re: Unpermitted Parameters - Rails 4

2014-04-23 Thread Gustavo Caso
You need to override the devise strong params implementation inside your ApplicationController. We could use a simple before_filter to check if devise controller is been use. ```ruby class ApplicationController ActionController::Base before_filter :configure_permitted_parameters, if:

[Rails] Re: Trying to pull data from ActiveRecord::Assosiation

2014-04-23 Thread Gustavo Caso
Thanks that really helped. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send

[Rails] Are you hunting for a RoR developers to work your jobs/tasks/projects?

2014-04-23 Thread Sanjay Panchal
Hello, Thank you for your time to read this Message. Are you looking for a RoR developers to carry out your tasks or the projects remotely? If the answer is Yes, then you are at the right place :) We, Intel IT Hub as a company working on all type of Web Mobile Technologies including Ruby on

Re: [Rails] Re: Unpermitted Parameters - Rails 4

2014-04-23 Thread Fernando Kakimoto
Hi Rita, Please, check the following steps: 1. If you created a custom RegistrationController, you have to set devise routes to use it. Something like this: config/routes.rb devise_for :users, controllers: { registrations: registrations } 2.sign_up_params is a private method in devise source

Re: [Rails] Select fields, Coffeescript and Cocoon

2014-04-23 Thread Walter Lee Davis
On Apr 23, 2014, at 2:24 AM, Werner wrote: Hello, I have select field which after a choice happened, feeds another select field. Using the gem Cocoon to duplicate this set of select fields. My problem now is to find a solution that the coffee script supplies values for each select

Re: [Rails] Select fields, Coffeescript and Cocoon

2014-04-23 Thread Werner Laude
Am 23.04.2014 um 14:54 schrieb Walter Lee Davis wa...@wdstudio.com: One thing to remember, conceptually, is that you cannot replace the innards of a select as if they were HTML without destroying its ability to react correctly to scripting or user input. The only bulletproof way to

[Rails] [JOBS] Ruby/Rails Developers wanted $90-150k; Boston, MA - relo assistance available within U.S.

2014-04-23 Thread Carol Taylor
Ruby/Rails Software Engineer; Boston, MA *Relocation within the U.S. available* This fully funded, privately owned e-commerce company is an online fundraising platform. A fairly new offshoot of a very successful parent company, they are fully funded and already profitable Top 200 e-tailer!

Re: [Rails] Select fields, Coffeescript and Cocoon

2014-04-23 Thread Walter Lee Davis
On Apr 23, 2014, at 9:02 AM, Werner Laude wrote: Am 23.04.2014 um 14:54 schrieb Walter Lee Davis wa...@wdstudio.com: One thing to remember, conceptually, is that you cannot replace the innards of a select as if they were HTML without destroying its ability to react correctly to

[Rails] [rails 4.1] weird behaviour in rails console? lazy loading of database connection or spring?

2014-04-23 Thread nathanvda
I guess I am the only one using it like this, by i regularly start my `rails console` to quickly show the column-names of models. Since 4.1 (afaik), the first call to a class does not return the model introspection, but instead urges me to use `Batch.connection` to establish a connection???

[Rails] Heroku and tmp folder

2014-04-23 Thread Gustavo Caso
In my Rails app I have delayed_job gem to delay all the emails, the problem with this appear when I want to have some attachments in the emails, in development I store then in tmp folder. I Heroku I thought that might be possible as well but I get the error the there is no file in that folder.

[Rails] [Show RoR] Ruby and Ruby on Rails merged documentations

2014-04-23 Thread Maurizio De Santis
Hello, I just almost completed this project: http://mdesantis.github.io/ruby-rails-documentations/ It provides Ruby and Ruby on Rails documentations merged together, like railsapi.com used to do (it is online no more). Feel free to share your opinions about it. Cheers -- You received this

Re: [Rails] Heroku and tmp folder

2014-04-23 Thread Hassan Schroeder
On Wed, Apr 23, 2014 at 7:59 AM, Gustavo Caso gustavoc...@gmail.com wrote: In my Rails app I have delayed_job gem to delay all the emails, the problem with this appear when I want to have some attachments in the emails, in development I store then in tmp folder. I Heroku I thought that might

Re: [Rails] [rails 4.1] weird behaviour in rails console? lazy loading of database connection or spring?

2014-04-23 Thread Hassan Schroeder
On Wed, Apr 23, 2014 at 7:01 AM, nathanvda nathan...@gmail.com wrote: Since 4.1 (afaik), the first call to a class does not return the model introspection, but instead urges me to use `Batch.connection` to establish a connection??? Of course this is no biggie, but I am curious what the cause

[Rails] Controller not showing up

2014-04-23 Thread Jan Yo
I used rails g scaffold_controller xx. It generated everything okay. I restarted httpd (web server). But, the controller won't show up...did a rake routes and it doesn't show up there. Any ideas on how to get my web app to recognize my new controller with views? -- Posted via

Re: [Rails] Controller not showing up

2014-04-23 Thread Colin Law
On 23 April 2014 17:45, Jan Yo li...@ruby-forum.com wrote: I used rails g scaffold_controller xx. It generated everything okay. I restarted httpd (web server). But, the controller won't show up...did a rake routes and it doesn't show up there. Any ideas on how to get my web app to

Re: [Rails] Heroku and tmp folder

2014-04-23 Thread Gustavo Caso
Thanks. I read some more and I'm going to use amazon S3. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] What's going to explode...

2014-04-23 Thread Walter Lee Davis
...if I just bump Rails from 4.0.4 to 4.1? How dramatic a jump is this update? Thanks, Walter -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] Something went wrong

2014-04-23 Thread Slavko Vorkapitch
http://secret-brushlands-1375.herokuapp.com/users/sign_up Not sure why all of a sudden I am getting this error message when I try to save a new user - Here is the log file: C:\rails_projects\store4heroku logs 2014-04-23T21:35:54.918695+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act

[Rails] Re: What's going to explode.

2014-04-23 Thread Robert Walker
Walter Davis wrote in post #1143883: ...if I just bump Rails from 4.0.4 to 4.1? How dramatic a jump is this update? My guess is probably not much if you follow this guide: http://guides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-4-0-to-rails-4-1 -- Posted via

Re: [Rails] What's going to explode.

2014-04-23 Thread Walter Lee Davis
On Apr 23, 2014, at 6:45 PM, Robert Walker wrote: Walter Davis wrote in post #1143883: ...if I just bump Rails from 4.0.4 to 4.1? How dramatic a jump is this update? My guess is probably not much if you follow this guide: