Looking for a bit of guidance as to what to be googling.
I'm probably not doing this the eloquent way.
Im using the devise Gem to create a user and then I have added to fields one is Club and the other is Zone.
So on my sign up page I have
This selects the club name from the club table which contains club.name and club.zone.
So on my signup page is there a way to get the club.zone into the hiddenfield depending on what is selected in the selection box ( or would I have to do a page reload)
I'm probably not doing this the eloquent way.
Im using the devise Gem to create a user and then I have added to fields one is Club and the other is Zone.
So on my sign up page I have
Code:
<%= select(:user, :club, Club.all.collect {|club| [club.name, club.name]}) %>
This selects the club name from the club table which contains club.name and club.zone.
So on my signup page is there a way to get the club.zone into the hiddenfield depending on what is selected in the selection box ( or would I have to do a page reload)