What's the best way to retrieve the current path? (i.e. /posts/1)

--
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@googlegroups.com.
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.

Search Discussions

  • Everaldo Gomes at Oct 16, 2011 at 10:54 pm
    Take a look at the request object:

    http://guides.rubyonrails.org/action_controller_overview.html#the-request-object

    Best Regards,

    Everaldo
    On Sun, Oct 16, 2011 at 8:33 PM, nick.colgan wrote:

    What's the best way to retrieve the current path? (i.e. /posts/1)

    --
    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@googlegroups.com.
    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.
    --
    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@googlegroups.com.
    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.
  • Everaldo Gomes at Oct 17, 2011 at 12:05 am
    Hi!

    I forgot to say to look in the params hash:

    http://guides.rubyonrails.org/action_controller_overview.html#routing-parameters

    Everaldo
    On Sun, Oct 16, 2011 at 8:53 PM, Everaldo Gomes wrote:

    Take a look at the request object:


    http://guides.rubyonrails.org/action_controller_overview.html#the-request-object

    Best Regards,

    Everaldo

    On Sun, Oct 16, 2011 at 8:33 PM, nick.colgan wrote:

    What's the best way to retrieve the current path? (i.e. /posts/1)

    --
    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@googlegroups.com.
    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.
    --
    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@googlegroups.com.
    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 16, '11 at 10:33p
activeOct 17, '11 at 12:05a
posts3
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Everaldo Gomes: 2 posts Nick.colgan: 1 post

People

Translate

site design / logo © 2022 Grokbase