On Wed, Mar 4, 2009 at 6:58 PM, Heinz Strunk <[email protected]> wrote: > If so, is there any variable that tells me > where the call is coming from (in my case it's called whatever) so I > don't have to give the :file path as a parameter whenever I call it?
I am not sure I understand your question. Would you mean something like request.uri etc (that variable is available in the views) or simply controller.action_name (available in the views) More details for request.uri and (lots of) friends: http://api.rubyonrails.org/classes/ActionController/Request.html#M000694 for the controller.action_name: http://rubyonrailswin.wordpress.com/2007/03/07/actioncontroller-and-what-the-heck-is-attr_internal/ Was that your question ? HTH, Peter --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

