function switchEmailLogin(vendor) {
if(vendor=="first") {
document.getElementById('second').style.display = "none";
document.getElementById('first').style.display = "";
}
else if(vendor=="second") {
document.getElementById('first').style.display = "none";
document.getElementById('second').style.display = "";
}
}
same else4
 error....

undefined method `downcase' for ["aaaaa", "aaaa", ""]:Array

 That's what rails does if two inputs have the same name: it only uses
 the first one (unless the name ends with [], in which case you'll get
 an array with all the values).

 Fred

-- 
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to