You could call this:
render :action => ''prompt''
to render the entire ''prompt'' action -- inside your definition
for
''getdata''. I''m not sure how to get it to just use the
same view file,
though.
If anyone else has a solution, jump on in, I''m interested too.
Regards,
Edd
On Nov 12, 2007 7:01 PM, Infiliset
<infiliset-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hi all,
> I''ve got a view named "prompt.rhtml"and a controller
named "customer"
> with some actions ("prompt", "getdata", and so on...).
Of course, the
> URL "/customer/prompt" is associated to the action
"prompt" and then
> to the view "prompt.rhtml", but is it possible, when the URL is
> "/customer/getdata", to associate the action "getdata"
> with the view "prompt.rhtml"? If so, how can I do this?
>
> It should be like this: getdata (action) -> prompt.rhtml (view)...
>
>
> Tanks,
> Matthew
>
>
> >
>
--
Edd Morgan
http://www.eddm.co.uk
+44 (0) 7805 089097
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---