I think I see the cause of lack of communication between params in 1) app\views\expenses\new.html.erb; and 2) app\views\vendors\show.html.erb
The are two distinct params, viz: one in an instance of app\controllers\expenses_controller.rb; the other in instance of app\controllers\vendors_controller.rb; And if I we overcome that problem, perhaps there's an even bigger problem: my app is intended to be installed on a server, includes the database. But the app is to be users of several classes on the network. Wouldn't the use of params fail in that case, but be ameliorated by use of sessions? Am I all wet about this? Thanks in advance, Richard On Apr 24, 6:47 pm, Hassan Schroeder <hassan.schroe...@gmail.com> wrote: > On Sat, Apr 24, 2010 at 2:53 PM, RichardOnRails > > <richarddummymailbox58...@uscomputergurus.com> wrote: > > I had to work on adding authenticated users to my app, so I had to > > back-burner the conditional-link issue. I nevertheless would like to > > keep trying to learn how to do this. > > You're making this wildly overly complicated. > > Stick this in a view file: > > <% @foo = "bar" %> > <% @state = false %> > <%= @foo if @state %> > > See what appears. Change @state to true and see what appears. > > If the variable you're using to eval true/false gives you different and/or > unexpected results, that variable is not what you think it is. > > Use debug or inspect or logging to figure out why. > > HTH, > -- > Hassan Schroeder ------------------------ hassan.schroe...@gmail.com > twitter: @hassan > > -- > 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-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.