I''m getting an incorrect result with the confirm option of submit buttons. This source... <%= button_to "Submit entire questionnaire", {}, :confirm => "Are you sure? You will not be able to make any more changes.", :id => ''button-submit-entire'' %> generates this html, whcih works fine... <input id="button-submit-entire" onclick="return confirm(''Are you sure? You will not be able to make any more changes.'');" type="submit" value="Submit entire questionnaire" /> But this source... <%= submit_tag "Submit entire questionnaire", :name => :submit_submit, :id => :submit_submit, :class => :submit_nav, :confirm => "Are you sure? You will not be able to make any more changes." %> generates this html, which looks wrong and does not do the confirmation... <input class="submit_nav" confirm="Are you sure? You will not be able to make any more changes." id="submit_submit" name="submit_submit" type="submit" value="Submit entire questionnaire" /> Rails bug? My error? Thanks. --David. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Jun 27, 2008, at 11:02 AM, djlewis wrote:> > But this source... > > <%= submit_tag "Submit entire questionnaire", > :name => :submit_submit, > :id => :submit_submit, > :class => :submit_nav, > :confirm => "Are you sure? You will not be able to make any more > changes." > %> > > generates this html, which looks wrong and does not do the > confirmation... > > <input class="submit_nav" confirm="Are you sure? You will not be able > to make any more changes." id="submit_submit" name="submit_submit" > type="submit" value="Submit entire questionnaire" /> > > Rails bug? My error?What version of Rails? Looks like 2.1 has this feature. 1.2.5 does not. (that''s what I have local docs for, hence those versions). -philip --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ahh... using 2.0.2. I had problems deploying in 2.1. OK, I''ll build it by hand -- not hard. Guess I''d better not use the 2.1 docs. Thanks. --David. On Jun 27, 4:07 pm, Philip Hallstrom <phi...-LSG90OXdqQE@public.gmane.org> wrote:> On Jun 27, 2008, at 11:02 AM,djlewiswrote: > > > > > > > But this source... > > > <%= submit_tag "Submit entire questionnaire", > > :name => :submit_submit, > > :id => :submit_submit, > > :class => :submit_nav, > > :confirm => "Are you sure? You will not be able to make any more > > changes." > > %> > > > generates this html, which looks wrong and does not do the > > confirmation... > > > <input class="submit_nav" confirm="Are you sure? You will not be able > > to make any more changes." id="submit_submit" name="submit_submit" > > type="submit" value="Submit entire questionnaire" /> > > > Rails bug? My error? > > What version of Rails? Looks like 2.1 has this feature. 1.2.5 does > not. (that''s what I have local docs for, hence those versions). > > -philip--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---