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 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/

Julian L. wrote:

The 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.

hi john,

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

other idea

Karthikragunath B. wrote:

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.

In general, use HTML for the content, but CSS for controlling appearance
and tuning layout.

A “display: inline” may work, or else enclose the form and button in a
div and use positioning inside that.

If you want to design web pages which do exactly what you want in the
way you want, CSS is your friend.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs