On Sep 17, 4:07 pm, Sunny Bogawat
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hi,
> I am using ''url_for'' for constructing url in my model
but it gives me
> error
> <NoMethodError: undefined method `url_for'' for Xyz:Class>
> how to access url_for in model and it possible to call controller
> method in
> model and how to call it?
>
> Please urgently give reply?
> --
> Posted viahttp://www.ruby-forum.com/.
I don''t think you can access url_for inside a model. Why would you
need to call it there anyway?
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@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
-~----------~----~----~----~------~----~------~--~---