You probably want

<%= radio_button("country", "name", "american") %>
<%= radio_button("country", "name", "chinese") %>

assuming you are on a form for="Country". If it's actually a form for a different model where you want to select something on a child model, post your model and we'll give you a hand.

Bryan


On 11-03-29 09:17 AM, simple_n00b wrote:
Thanks bryan,
I have been able to get the radio buttons to appear on the page, but
when using them to make a selection, it doesnt seem to save to the
database.
I was trying to modify<select-one>  in
libraries>Ruby 1.9.2-
p0>hobo-1.3.0.pre26>lib>hobo>rapid>taglibs>rapid_forms.dryml

to use
<%= radio_button("countries", "name", "american") %>
<%= radio_button("countries", "name", "chinese") %>

What would you recommend as the best place to start in the hobo
documentation with regard to implementing non-default form elements,
like radio for single select, checkboxes for multiple select, etc...?

On Mar 28, 11:04 am, Bryan Larsen<[email protected]>  wrote:
How's your html-fu?   You can write pure HTML radio buttons and drop
them into the middle of your DRYML.   If you need to parameterize it a
little bit, just use a minimal amount of ERB rather than writing a DRYML
tag.  Knowing HTML&  ERB is essential for hobo-fu, so it won't be wasted
effort.

Once you've got it working the "pure Rails" way, we can certainly help
you turn it into a DRYML tag that everybody can use.   We can help you
you get to that stage too, but small steps are the best way to learn
something.

Bryan

On 11-03-28 09:52 AM, simple_n00b wrote:

Thanks Mark, That is currently beyond the scope of my hobo-fu.
Is there a reference somewhere that would show me how to create a new
tag, and where to find the method that a tag uses to generate the
html, etc?

On Mar 28, 8:18 am, Mark Sobkowicz<[email protected]>    wrote:
The code for<select-one>    is in the gem, and also in the manual

http://cookbook.hobocentral.net/api_tag_defs/select-one

You could modify this and make your own<select-one-with-buttons>    tag.

On Mar 28, 2011, at 7:11 AM, Piotroslav wrote:

There is no radio buttons in hobo out of the box.
I was advised to create them myself.- Hide quoted text -

- Show quoted text -




--
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to