I have this link to create a new page:
"new" %>
The code called in the controller is this:
def new @page = Page.new @visuals = Visual.find(:all) end
I would like to pass an additional parameter to pre-set a field in the form, something like this:
"new/parent_id/2" %>
and in the controller
def new @page = Page.new @page.parent_id = params[:parent_id] @visuals = Visual.find(:all) end