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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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/ On 07/04/2008, at 3:56 PM, Karthikragunath Bhavani wrote:> > > > 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. > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
hi john, i did as u said but it made no difference.do u have any other idea -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Karthikragunath Bhavani 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---