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)…
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?
render :action => ‘foo’
Will use the template for the foo action
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.