I have nested resources like this in my routes.rb - (my rake:routes gist) namespace(:admin) do resources :restaurants do
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|%>
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
I have method in my controller: def work_here @company = Company.find(params[:id]) current_user.work_apply(current_user,开发者_运维问答 @company)
I have a very simple render that goes as follow: <%= form_for(:relationships, :url => relationships_path, :html => {:method => \'delete\'}) do |f| %>
I\'m looking to have the child mo开发者_C百科del added/edited on it\'s own form, not within the parent form.
I am having a problem getting the params of a nested form in the following case: I have these 3 nested models:
i want to make a \'comment\' form inside \'post view\' But this helper couldn\'t work <%= form_for([@post, @comment]) do |f| %>
In views/products/edit.html.erb I use: <%= form_for(:product, :url => {:action => \'update\', :id => @product.id}) do |f| %>
I have a model: class Contact < ActiveRecord::Base has_many :phones accepts_nested_attributes_for :phones