formtastic
Rails 3: Form getting submitted twice
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.[详细]
2023-02-03 03:09 分类:问答Can't access nested resource 'comments' in rails 3.0.1
I hope you can help me. /config/routes.rb: resources :deadlines do resources :comments end /model/comment.rb:[详细]
2023-02-02 16:46 分类:问答Get a value of object field inside fields_for loop
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| %>[详细]
2023-02-01 10:57 分类:问答Multilevel Complex form with formtastic?
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|[详细]
2023-01-30 08:19 分类:问答Rails, Formtastic - model name not showing on form buttons
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.[详细]
2023-01-30 04:24 分类:问答formtastic - subset of values in accepts_nested_attributes_for
I have a model: class Contact < ActiveRecord::Base has_many :phones accepts_nested_attributes_for :phones[详细]
2023-01-30 00:29 分类:问答How to create a nested form in Rails 3 that works? ( I'm getting a routing error. )
I have a Client and ProposalRequest model that look like this: class Client < ActiveRecord::Base has_many :proposal_requests[详细]
2023-01-29 04:25 分类:问答Setting Formtastic as Rails 3 default form builder, is it possible?
Something like this in application.rb: # Configure application generators config.app_generators do |g| g.form_builder Formtastic::SemanticFormBuilder[详细]
2023-01-29 01:54 分类:问答Dynamic loading of options in select menu for a form whilst using formtastic
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.[详细]
2023-01-27 15:20 分类:问答Many-to-Many Association with Formtastic not working for me
My use case is a bit more complicated than the one shown in RailsCasts. I get an unknown attribute: user error.[详细]
2023-01-24 22:55 分类:问答