i have seen one* link_to* function, but i didn''t get the path flow. which written in that function. PLZ any one clear dat function *<%= link_to "Loyalty Report", report_listing_path(@listing, :format => "csv") unless @listing.parent %><br />* * * * * Thank you vishnu -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/U4s9_PJtKWoJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Wed, Dec 7, 2011 at 7:26 AM, amvis <vgrkrishnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > i have seen one link_to function, but i didn''t get the path flow. which > written in that function. PLZ any one clear dat function > > <%= link_to "Loyalty Report", report_listing_path(@listing, :format => > "csv") unless @listing.parent %><br />What exactly you don''t get? Have you seen the generated HTML for this? The report_listing_path is a resource''s route helper function. If this is what you don''t understand, you should take a look at http://guides.rubyonrails.org/routing.html Hope it helps. Cheers. -- Leonardo Mateo. There''s no place like ~ -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
i have look this http://guides.rubyonrails.org/routing.html. but i didn''t get one thing..... lets take one example * <%= link_to "Loyalty Report", report_listing_path(@listing, :format => "csv") . *so what i am seeing the above link is new_photo_path returns */photos/new.*so if it like dis the* ** report_listing_path will return listing/report........is ti correct?* * * *Thank You* *vishnu* -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/6mq4Lji2nLcJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
"report_listing_path will return the path to whatever route you have defined as "report_listing" You can run "rake routes" from the command line to see which routes you have configured in your application. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/MFOubifLixoJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.