Rails Learner wrote: > Hi Everybody! > > I m back. > I have a non-model form (I am using active_record_no_table gem for > validations). When the user fills that form and submits it, I want to > process the form and then display it back to the user just like the > "show" method in a scaffold. > > Now, since this is a non-model form, I need to pass the instance > variable from "create" method to "show" method. > > I know that rather than redirecting to show method, I can display data > back to the user using a partial and passing a locals hash to the > partial. > But I don't want to do this. The reason is there is a link on the "show" > view that allows the user to print the show view in PDF format and I > want to do the same with the link...passing the local variable to the > show action. > > How can I do this? >
Put in a link_to parameter. Remember that link_to can take more options than :controller and :action. > Please advise? > > Many Thanks! Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

