On 25 March 2011 16:47, John Merlino <[email protected]> wrote:
> ...
> It works but I dont like that I am checking whether a model has the
> method "viewable" just to display a link to a detail view in the table.
> Is there a better way to determine if the current controller's table
> should contain a view or not?

Can't you set an @variable in the controller and test it in the view
to determine whether to show the link?

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.

Reply via email to