I have in my application.rhtml a series of links that can help navigate the application. When I link_to I get the links on one horizontal line. When I button_to I get a carriage return after each button. link_to: <jobs> <inventories> <species> button_to: <jobs> <inventories> <species> is there a way to control this behavior or a work around? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Nov 17, 2007, at 6:23 PM, john95127 wrote:> When I link_to I get the links on one horizontal line. > > When I button_to I get a carriage return after each button. > > link_to: <jobs> <inventories> <species> > > button_to: > > <jobs> > <inventories> > <species> > > is there a way to control this behavior or a work around?That helper creates a FORM with a DIV inside, which are block-level elements. You may control that a bit with CSS, with something like this: <div id="buttons"> <jobs> ... </div> and then something like this: #buttons form, #buttons div { display: inline } This is all untested, but you see how it goes. -- fxn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Can you show me how? I''m really new... On Nov 17, 9:49 am, Xavier Noria <f...-xlncskNFVEJBDgjK7y7TUQ@public.gmane.org> wrote:> On Nov 17, 2007, at 6:23 PM, john95127 wrote: > > > When I link_to I get the links on one horizontal line. > > > When I button_to I get a carriage return after each button. > > > link_to: <jobs> <inventories> <species> > > > button_to: > > > <jobs> > > <inventories> > > <species> > > > is there a way to control this behavior or a work around? > > That helper creates a FORM with a DIV inside, which are block-level > elements. You may control that a bit with CSS, with something like this: > > <div id="buttons"> > <jobs> > ... > </div> > > and then something like this: > > #buttons form, #buttons div { display: inline } > > This is all untested, but you see how it goes. > > -- fxn--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Nov 17, 2007, at 7:10 PM, john95127 wrote:> Can you show me how? I''m really new...Once you got the buttons wrapped in the DIV throw #buttons form, #buttons div { display: inline } into stylesheets/application.css for instance, and load the stylesheet in the layout: <%= stylesheet_link_tag "application.css" %> Once said that, take into account that to let the user navigate to other pages you normally use links. -- fxn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---