On Tue, 2010-04-13 at 16:44 -0700, slindsey3000 wrote:
> routes.rb
> 
>  map.connect ':controller/:action/:id/:draw_id', :controller =>
> "admin", :action => "edit_position"
> 
> 
> In a view I have:
> 
> <%= link_to "#...@draw.positions[0].team}", { :controller
> => :admin, :action => :edit_position,
>                                                                  :id
> =>@draw.positions[0].id, :draw_id => @draw.id } %>
> 
> In my controller I do not receive the param :draw_id in my params[]
> 
> 
> 
> Any thoughts?  How do I do a link_to and pass in these 2
> parameters :id and :draw_id
----
the param :draw_id would be sent as a parameter...

http://www.example.com/controller/action/id?draw_id=1

thus, there really is no need to represent it in routes.rb

Craig



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to