On Tue, Sep 7, 2010 at 6:54 PM, Philip Hallstrom <[email protected]> wrote:

>> This should be so simple, yet I can't seem to get anything to work. I
>> don't think I can just use my own xyz_path in link_to since I think
>> that's just a convention for the built in resources (edit ,etc.) eg:
>
> Look into the "member" option...
>
> map.resource :grocery_stores, :member => {:add => :get}
>
> -philip

Thanks Philip! That was the key.

After I added:

resources :meters_search do
        member do
            get 'add'
        end
end

I was able to use

link_to 'add',  add_meters_search_path(m)

-- 
Rick

-- 
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