frankjmat...@gmail.com wrote:
> yeah, i've read it half a dozen times

Read *what*?  Please quote when replying so it's clear what you're 
responding to.

> - doesn't give me any insight on
> the argument list for the _path family of functions and apidock is
> less than helpful as well.

Are you talking about the routing guide?

In any case, the arguments are whatever is defined in that particular 
route.  Run rake routes or look at your routes file to see what that 
would be.

> 
> searching through google led to some obscure blog that said i could
> do:
>   link_to 'do something', station_path(@station, :station =>
> { :attribute => :value }), :method => :put
> 
> but why does this work and why aren't the _path functions clearly
> documented?

Because they're generated from your routes, and so will be different for 
each Rails app.  This is pretty clearly explained in the routing guide, 
as well as in the documentation for ActionController::Routing and 
ActionController::Resources .  Perhaps you should read those again.
> 
> maybe someone who knows could point me to where these functions are
> defined in the source tree (preferably in master)?

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
-- 
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-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