map.connect '/actions/:action_id/add_date/:date', :controller =>
'actions', :action => 'add_date'


/actions/980190963/add_date/2010-02-23<http://localhost:3000/actions/980190963/add_date/2010-02-23>
On Mon, Feb 22, 2010 at 11:14 AM, Heinz Strunk <[email protected]> wrote:

> No, I just want to change these URLs:
>   http://localhost:3000/actions/980190963/add_date?t=2010-02-23
>   http://localhost:3000/actions/new?at=678542324&t=851829735&tt=
> into:
>   http://localhost:3000/actions/980190963/add_date/2010-02-23
>   http://localhost:3000/actions/new/678542324/851829735
> for better readability.
>
> I tried it with:
>   map.connect ':controller/:id/:action/:action_id'
>   link_to atp.name, {:controller => 'activities', :id => @activity,
> :action => 'select_characters', :action_id => atp.id }
> or
>   select_characters_activity_path(@activity, {:action_id => atp.id})
> but I only get:
>
> http://localhost:3000/activities/980190963/select_characters?action_id=291929305
>
> So my question was how to create this kind of link:
> http://localhost:3000/actions/980190963/add_date/2010-02-23
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> 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 [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