Let me preface by saying that I am noob for Rails and StackOverflow, so please calm down. I am using Rails 2.3.8 with sqlite3 in my dev block.
I created a selection in the form using the following:
<%= select( "communication", "gig_id", { "Add New Gig" => "new"}, {:prompt => "-- Select Gig --"}, :onchange => "toggle(this, 'gigInfo')") %>
However, when something else on the form fails the test and the โnewโ page is re-displayed, my request leaves and the only option is โAdd a new Gigโ. This is the case with all my forms, and I cannot find an answer about why.
My controller uses basic scaffolding, so I donโt seem to understand. Any help would be greatly appreciated.
select ruby-on-rails prompt
Errick
source share