On Sat, Apr 24, 2010 at 2:53 PM, RichardOnRails <[email protected]> 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 ------------------------ [email protected] 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 [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.

