search for: defecs_control

Displaying 1 result from an estimated 1 matches for "defecs_control".

2008 Oct 30
1
Nested Resouces,not getting parent id(project_id) from form
...m here is i am not getting project_id from edit form.What''s a problem if any one knows please help. edit.html.erb <% form_for(@defect,@project) do |f| %> <%=f.text_field :name%> <%end%> routes.rb map.resources :projects,:has_many=>:defects map.resources :defects defecs_controller.rb before_filter :get_project private def get_project @project = Project.find(params[:project_id]) end def edit code for update defects end Here problem is from edit form i am getting project id. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~----...