Hi friends,

please help me....

my template is:
view.rhtml
<form action="/a/create">
<div id="first">
<div><input type="text" name="empfirstname"/></div>
<div><input type="text" name="emplastname"/></div>
</div>
<div id="second">
<div><input type="text" name="empfirstname"/></div>
<div><input type="text" name="emplastname"/></div>
</div>
</form>

My controller is....

 def create
  @firstname=params[:empfirstname]
  @lastname=params[:emplastname]
  @contacts = Contactbook.get :firstname => @firstname, :lastname =>
@lastname
  end

Enter <div id="first"> this div only working

But.... Second <div id="first"> not working

Get only first div datas only....
please help me...

Thanks.
-- 
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