I am trying to get a form tag working in rails 3 but I keep getting a Routing Error: No route matches {:action=>\"search\", :controller=>\"posts\"}.
Background: I have a form_for mapped to a model called List. List has attributes: name, id, receiver_id, assigner_id.
I have a resource called :school and when I call form_for(@school) it generates the form action: /school.1
How do I create a collecton_select drop down to set the state of a resource in a form? right n开发者_如何转开发ow I have
I have some data associated with a model that is in a hash. The hash is generated in the controller: @hash.
I\'m porting a php app to rails and am开发者_StackOverflow中文版 having trouble with a complex form. I have a acts_as_tree model called menu_headers and would like to create a form that is able to edi
I have a helper called user_order which returns an instance of Order. Order accepts nested attributes for User and Address. My (abbreviated) form looks like this:
I have a problem with my form in Rails 3. The forms work if I create something, but if I try to update som开发者_如何学JAVAething, they fail. In this exmaple I tried to update the user settings, like
I am new to rails and having trouble with views so excuse me if this is a simple question.I was wondering how add to a has_and_belongs_to_many association in the view.
I\'m using acts-as-taggable-on. I\'ve tried multiple approaches but none of them work. On the view: <%= check_box(\"post\", \"add_politics\", {:class=> \"post\"}) %>