Can I attach a named scope to a link in Rails?

You could have only the index action and pass the scope as a parameter, so you would do.

You could have only the index action and pass the scope as a parameter, so you would do: Event. Send(params:scope : 'all') The scope could be passed like: link_to "Future events", events_path(:scope => "future").

Thanks a lot, that works perfectly - it really helps! – stephenmurdoch Sep 8 '10 at 7:44.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions