On Mar 29, 12:58 pm, Hamid Raza <[email protected]>
wrote:
> controller method is =>
>
> def call
>
> @template = MailRoomTemplate.find(:all)
> @send_message = SendMessage.new
> end
>
> it is not going to views/send_messages/call
>
> and this error comes
>
> "NoMethodError in Send messagesController#new
>
> undefined method `render' for #<MailRoomTemplate:0x551d358>
>
It means that controllers already have a magic instance variable
called @template that is used internally by rails and that you should
pick a different name.
Fred
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---