Hello people. I have an app which lists Offers from different Vendors. I want to implement "sort by" links and I''ll do this using scopes in my Offer model. But how should I implement the functionality in the controllers/router? Should I use a member route along with a new controller action (eg. "expiring", or "most_expensive") or just use param queries? My app: https://github.com/Agis-/ehm Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/-YUOrugkGtsJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 April 2012 15:15, Agis A. <corestudiosinc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello people. > > I have an app which lists Offers from different Vendors. > > I want to implement "sort by" links and I''ll do this using scopes in my > Offer model. But how should I implement the functionality in the > controllers/router? Should I use a member route along with a new controller > action (eg. "expiring", or "most_expensive") or just use param queries?Whichever you feel most comfortable with. 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
i remember that there was a jquery plugin that could do this. 2012/4/14 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>> On 14 April 2012 15:15, Agis A. <corestudiosinc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hello people. > > > > I have an app which lists Offers from different Vendors. > > > > I want to implement "sort by" links and I''ll do this using scopes in my > > Offer model. But how should I implement the functionality in the > > controllers/router? Should I use a member route along with a new > controller > > action (eg. "expiring", or "most_expensive") or just use param queries? > > Whichever you feel most comfortable with. > > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- *愿爱与喜悦心与你同在! 石岩敬上 大连东软信息学院 计算机系软件工程应用方向 Dalian NEUSOFT Institute of Information 中国-大连市软件园路8号 邮编:116023 **Mail:hlcfan.yan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org* <hlcfan.yan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> *Phone:15242613529* -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.