Dynamic select boxes with Rails 4
Hi chris, The issue is with how the form fields are added , I am using gem cocoon and they have an in built method to help sort that out .. cocoon:before-insert: called before inserting...
JM repliedHi chris, The issue is with how the form fields are added , I am using gem cocoon and they have an in built method to help sort that out .. cocoon:before-insert: called before inserting...
JM repliedI'm maintaining an old Rails app and am trying to have a my index action use a form_tag to pass the params of a region so I can scope the results of calls by region. This works fine and dandy, but...
shakycode postedAwesome, glad you got it working! Turbolinks can definitely be tricky to wrap your head around what's going on. Also for reference, this is a pretty great list of solutions to convert JS from popu...
Chris Oliver replied • SolvedHey Ken, I was searching gorails for Redux content and went to check out your application and it looks like its down? Is this still an active project?
Aaron repliedThanks a lot Chris!
Sean M replied • SolvedI getting undefined value.
Lee Terng Gio repliedAnytime! Always happy to take a look or brainstorm with you.
Chris Oliver repliedI had to do something like this in a specific circumstance. The solution I used was to create a unique body class for each page with interpolation. In HAML: `%body{:class => "#{controller_name}...
Greg Cosgrove repliedHaha! Always the simplest things producing the hardest problems.
Chris Oliver repliedWow, Chris is really becoming a rockstar! Good job!
shakycode repliedPerhaps using jQuery `toggleClass` method would be helpful here. ```coffeescript $("#bill_patient_checkbox").change -> $("#billing_address").toggleClass('hidden') # toggleClass and not just...
David Becerra repliedOh perfect!
Chris Oliver repliedWill do. I'm sure we can come up with something great.
shakycode repliedHmm, what does your javascript look like?
Chris Oliver replied