form-for
Rails 3 nested resource route problem as form_for
I have nested resources like this in my routes.rb - (my rake:routes gist) namespace(:admin) do resources :restaurants do[详细]
2023-02-09 06:45 分类:问答Creating a simple drop-down menu in Rails
This really seems simple enough yet for some reason I\'m missing something critical. I have a view: <% form_for :foo, @foo, :url => {:action => \'bar\'} do |f|%>[详细]
2023-02-07 23:29 分类:问答ActiveRecord aggregations and form_for
I\'m contemplating about using an ActiveRecord aggregator for some fields. The thing that bothers me that how well do aggregated attributes work with form_for and input fields. That is, how do you ge[详细]
2023-02-07 16:17 分类:问答Rails 3 form_for ajax call
I have method in my controller: def work_here @company = Company.find(params[:id]) current_user.work_apply(current_user,开发者_运维问答 @company)[详细]
2023-02-06 19:35 分类:问答Rails 3 : Can't get form_for to work as a 'delete' following the RESTful achitecture => always giving a ROUTING ERROR
I have a very simple render that goes as follow: <%= form_for(:relationships, :url => relationships_path, :html => {:method => \'delete\'}) do |f| %>[详细]
2023-02-04 21:17 分类:问答How to get the form_for working for a nested resource - with a slight twist
I\'m looking to have the child mo开发者_C百科del added/edited on it\'s own form, not within the parent form.[详细]
2023-02-04 14:38 分类:问答Nested Form missing params
I am having a problem getting the params of a nested form in the following case: I have these 3 nested models:[详细]
2023-02-02 04:56 分类:问答form_for problem
i want to make a \'comment\' form inside \'post view\' But this helper couldn\'t work <%= form_for([@post, @comment]) do |f| %>[详细]
2023-01-31 04:28 分类:问答Ruby on Rails: Why "edit" action does not work?
In views/products/edit.html.erb I use: <%= form_for(:product, :url => {:action => \'update\', :id => @product.id}) do |f| %>[详细]
2023-01-31 01:25 分类:问答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 分类:问答