I am developing a Rails application that has forms generated using formtastic. I am developing & testing locally - that is - on localhost:3000 w/ Ruby-1.9.2, Rails-3.0.1, jQuery and AJAX.
I hope you can help me. /config/routes.rb: resources :deadlines do resources :comments end /model/comment.rb:
In the following scenario, I need to check the value of the object property in the fields_for loop. <%= f.semantic_fields_for :review_details do |rd| %>
I have a scenario which needs a very complex form, and i need help in it. I have three tables create_table \"permissions\", :force => true do |t|
I have just deployed an existing app to a new server and have noticed that where model names are automatically generated (by Formtastic) it instead outputs {{model}} rather than the expected name.
I have a model: class Contact < ActiveRecord::Base has_many :phones accepts_nested_attributes_for :phones
I have a Client and ProposalRequest model that look like this: class Client < ActiveRecord::Base has_many :proposal_requests
Something like this in application.rb: # Configure application generators config.app_generators do |g| g.form_builder Formtastic::SemanticFormBuilder
I have a formtastic form. And the problem is simple. I have 2 select menus. Based on the option selected in the 1st select menu, the 2nd select menu should be populated.
My use case is a bit more complicated than the one shown in RailsCasts. I get an unknown attribute: user error.