The underlying issue is that the Rails "button_to" helper generates a form
around the button. Forms are block-level elements unless styled otherwise.
So the quickfix would be to do some CSS like:
form {
display: inline;
}
The meta-problem is that you're using a button to perform a
non-data-modifying request. In general, you should be using a link to do
this. If you want the link to look like a button, check out
fancy-buttons<http://github.com/imathis/fancy-buttons/>,
for which you'd need to use Compass<http://github.com/chriseppstein/compass>
.
:brad
On Mon, Oct 11, 2010 at 12:14 PM, kadoudal <[email protected]> wrote:
> writing
>
> = button_to "#{I18n.t('sign_up')}",
> new_user_registration_path, :method => :get
> = "or Continue as guest"
>
> gives me the button as block and then the string on the following
> line...
>
> any trick to display the string on the same line with the button ?
>
> thanks fro any suggestion ...
>
> erwin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>
--
Bradley Grzesiak
co-founder, bendyworks llc
http://bendyworks.com/
--
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.