button position

hi all,

          im having a form and a back button like this in my view page
like this

   <% form_tag %>

   <% submit_tag %>

   <% end %> <% button_link,'back' %>

   but in view page the button_link is coming always down to submit_tag
like

   submit

   back

  but i want to show like

   submit back.

   somebody please help me for this.

Not sure if this is your problem but it's worth a try. When you embed
rails code between <%= and %> it finishes with a newline in the html.
You could try using <%= and -%>. This may not be your problem, however.

The </form> tag (ie positioned at <% end %>) will mean that your
buttons cannot be together.

Put the end after the button link.

Julian.

Learn Ruby on Rails! Check out the FREE VIDS (for a limited time)
VIDEO #3 out TODAY!
http://sensei.zenunit.com/

hi john,

             i did as u said but it made no difference.do u have any
other idea

Julian Leviston wrote:

The </form> tag (ie positioned at <% end %>) will mean that your
buttons cannot be together.

Put the end after the button link.

Julian.

Learn Ruby on Rails! Check out the FREE VIDS (for a limited time)
VIDEO #3 out TODAY!
http://sensei.zenunit.com/

hi julian,

            i did as u said but when i clicked the back button then also
the form was posted.do u have any other idea.