Direct to same page

Hi guys…

I want to drict again same page after submitting values to another
methode in the controller.

ex::

Im in

post.rhtml

I submit some data to methode

def mail

end

then I want to direct again to post.rhtml page with submission
success message.

please help me…
mithila

Hi,

xxmithila

I want to drict again same page after submitting values to another
methode in the controller.

redirect_to :back

should do it for you.

HTH,
Bill

thankx,
I’ll try it.

xxmithila wrote:

Hi guys…

I want to drict again same page after submitting values to another
methode in the controller.

ex::

Im in

post.rhtml

I submit some data to methode

def mail

end

then I want to direct again to post.rhtml page with submission
success message.

please help me…
mithila

You could always use a link_to_remote or form_remote_tag to submit some
data and then just update a div in that page or do nothing. Your app
would appear to run more smoothly if you avoided having to reload the
page again, just a thought.