I am trying to deploy my Rails3.0 application on production server. There was many troubles before, but all of them solved. And now I have another.
I am trying to update a user record using a formtastic nested form. Its structure is as ollows User Admin
For me to use formtastic, it looks like I need this as my html tag: &l开发者_运维知识库t;html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">
I am using formtastic for form generation In my app i have two model say Account and Profile but there is no association between them
So I\'ve got some objects that I\'m passing as a collection: @things = Thing.all And in my view: <%= f.input :things, :collection => @things, :as => :check_boxes %>
Have a boolean field (using formtastic) and the value won\'t persist through an error. If submitted and an error exists, on reload, the boolean field automatically checks itself, which is bad. I can s
I\'m have a little question, anybody pl开发者_C百科ease answer. I generate form with formtastic something like this
Have a boolean input in a formtastic form. <%= f.input :legal, :as => :boolean, :input_html => { :checkbox_tag => false }, :label => \"I Agree to the legal terms\"%>
I\'ve got a fairly simple nested form using formtastic. My models are class FieldMap < ActiveRecord::Base
I\'m trying to update the values of a select statement when another field is changed. This is my code: