Hello there - I''m pretty much a newbie to Rails and a complete newbie
to
this forum.
I''ve had a quick look for a FAQ for the forum but seem unable to find
one. If I''ve committed any major faux-pas, please forgive me :)
My problem is with a form that (I believe) is being generated at least
partially by some Rails magic.
Some radio buttons in this form are pushing the accompanied text
downwards, so rather than it looking like this:
o Text1
o Text2
It looks more like this:
o
Text1
o
Text2
The code that generates this bit is as below, lurking in
views/addresses/_addresses_list.rhtml
<% address_id_param = params["#{address_name}_id"] %>
<% if @addresses and !@addresses.empty? %>
<% for address in @addresses %>
<%= address_radio_button_tag address, address_name,
address_id_param.to_i %>
<%= address.city %>: <%= address.line_one %><br/>
<% end %>
<%= new_address_radio_button_tag address_name, address_id_param %>
Add a new address<br/>
<% else %>
<%= render :partial => ''/addresses/form'', :locals
=> { :address_name
=> address_name } %>
<% end %>
The layout of this section is styled by a a CSS element:
#form_container. I suspect, from reading some other posts on here, that
a display: inline; line in the right place should get the text behaving
the way it ought to.
Sadly, I''m pretty new to CSS too, so while I''ve spent a large
part of
the afternoon trying various things, I''ve yet to hit on the solution.
I hope this wasn''t too long a post - any advice / pointers to some
reading would be very gratefully appreciated.
Thank you for your time,
Dave
--
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
-~----------~----~----~----~------~----~------~--~---