bingo bob wrote:
> 
> 
> Darrick,
> 
> That's great thanks, I tried this before (or something very similar and 
> it worked)...Here's the problem though...
> 
> That show action works your way from the collection select drop down...
> 
> However....
> When I do it this it brakes something else (the show action after I've 
> editted a form).
> 
> e.g this URL.
> 
> http://localhost:3000/enquiries/show/5

If you're using RESTful routes, that url should be:
http://localhost:3000/enquiries/5/show

Not sure how you're getting to the other.  Are you using the url 
generator methods?  e.g. enquiry_url(@enquiry) and friends?

If you use the url generator methods for all of your links, you 
shouldn't have any problems.  Use these as parameters to redirect_to and 
link_to.

<%= link_to 'list', enquiries_path %>
... or ...
redirect_to enquiry_url(@enquiry)

How are you generating the url you listed above?

Cheers,
Darrik


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to