11175
(-- --)
April 7, 2008, 5:56am
1
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.
11175
(-- --)
April 7, 2008, 8:35am
2
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/
11175
(-- --)
April 7, 2008, 12:39pm
4
hi john,
i did as u said but it made no difference.do u have any
other idea
11175
(-- --)
April 7, 2008, 12:41pm
5
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.