I have a link which looks something like this: http://...../positive_rating/34 here, positive_rating is an action that adds up some rating value for user id 34. I just want to hide the id in the above url, or use javascript to hide all the link. Could anybody let me know how can I do this? Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
One solution would be for ''positive_rating'' to perform it''s normal action (adding the rating) and then redirect to the action / page you want displayed following the rating which would not need the ''id'' parm. Bear in mind this would cause an additional server invocation and an actual redirect at the browser but it would solve the problem for you. Steven -- Steven Smith, CEO, FiveRuns http://www.fiveruns.com On Jan 5, 2007, at 10:40 PM, Jay L. wrote:> > I have a link which looks something like this: > > http://...../positive_rating/34 > > here, positive_rating is an action that adds up some rating value for > user id 34. > > I just want to hide the id in the above url, or use javascript to hide > all the link. > Could anybody let me know how can I do this? > > Thanks. > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jay L. wrote:> I have a link which looks something like this: > > http://...../positive_rating/34 > > here, positive_rating is an action that adds up some rating value for > user id 34. > > I just want to hide the id in the above url, or use javascript to hide > all the link. > Could anybody let me know how can I do this? > > Thanks.Try submitting it via a form instead of URL? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---