On 25 April 2010 17:07, Hassan Schroeder <[email protected]> wrote: > On Sun, Apr 25, 2010 at 8:53 AM, Colin Law <[email protected]> wrote: > >> Or copy it into an @ variable in the controller action to make it >> available in the rendered view. But I believe for the OP's problem he >> does not require to use params (or persistence) at all. See my >> previous post. > > My impression is that the OP is trying to set a variable in one view > (and yes, that's the wrong place to do it regardless): > > app\views\expenses\new.html.erb > > and have it show up in another: > > "But the "params ... true" setting is not conveyed to the > app\views\vendors\show.html.erb page." > > Hence the issue of persistence...
I believe he has been trying to do that, but is that what he needs to do? Can he not just set the condition variable in the controller action? With a parameter on the link calling the action if necessary. Colin -- 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.

