form-for
Why am I getting an attribute_methods error when using form_for?
I keep getting this error when I attempt to do this form_for, either in a partial or in the \"show\" view.Can anyone explain what I\'m doing wrong?[详细]
2023-02-23 13:54 分类:问答Ruby on Rails form_for post to database not working for one column but is for the others in same table
This is my first Rails project. For some reason, I can\'t post to one column in my database, although the other columns in the same table work out fine. (I also couldn\'t populate that column using th[详细]
2023-02-21 12:13 分类:问答Problem using a form with nested routes in rails 3
I have a database structure where my Articles have many People (through a join, but that is working fine)[详细]
2023-02-20 09:15 分类:问答How do I make checkboxes for a has_many :through association using the form builder?
Want to do a checkboxes for has_many :through. Railscast in 2007 recommends this:check_box_tag \"product[category_ids][]\",开发者_如何学运维 category.id, @product.categories.include?(category). Is thi[详细]
2023-02-17 08:32 分类:问答how to set default value of form_for select
I would like to know how to set default value on form_for select. My code goes like this: <%= form_for(@us开发者_StackOverflower) do |f| %>[详细]
2023-02-15 08:42 分类:问答Rails 3 form_for action with params
<%form_for [commentable, Comment.new], :action => \'create\', :remote => false do |f开发者_JAVA百科|%>[详细]
2023-02-14 08:04 分类:问答How do I send information with a form_for form?
I have two submit buttons both using the same create action in my controller. How can I send information with a form (without the user inputting it)?[详细]
2023-02-10 16:42 分类:问答Latest Rails 3: ActionView::Template::Error (couldn't parse YAML at line 105 column 13)
I have recently encountered into a weird problem or Rails 3, possibly ever since the new rubygems 1.5 update. Basically when I deploy my program to nginx with passenger 3.0.2, I have 500 page immediat[详细]
2023-02-09 17:14 分类:问答Keep Rails from redirecting a page
I\'m having some trouble and I hope someone can help me. I have an erb file with a form in it that has a button. When you click the button it redirects the page elsewhere and shows the erb file that I[详细]
2023-02-09 16:13 分类:问答Capitalize f.text_field
I have a form_for and I want that any value inside x.textField appear with the first letter in Upcase (I\'m talking about the开发者_如何学Go edit where the textfield are prefilled by the db values).Yo[详细]
2023-02-09 08:31 分类:问答