I have a todo list involving projects and tasks and im using nested resources. In Projects Show - i list all tasks associated with the project. I also have a simple "add task" which allows the user to add a task but only specify the title. Other attributes are set to default (e.g. due date = None, priority = NA etc). This form is sent to project_tasks_path i.e. create in Task Controller. I want an "Advanced Add Task" button on this form which when clicked will reload the same project show view but with a full form comprising of title, due date, lable etc. I know i can create a new submit button in the current form <%= submit_tag "Advanced Add Options", :class => "submit_advanced", :name => "advanced_add" %> and then in the receving action use if params[:advanced_add] render :show end and in show have if params[:advanced_add] show the advanced form else show the simple form end but because the form is going to create in the task controller it means the task controller create action is managing the projects show actions logic which i dont think is good. I thought about using link_to but I can only pass an :id via params to the controller. How do i go about this? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---