Use:

 params[:user][:province_id]

-
Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en)



On Sun, Feb 15, 2009 at 9:40 AM, Hamid Raza
<[email protected]> wrote:
>
> this is my view code
>  <%= f.collection_select(:user, :province_id , @provinces ,:id , :name)
> %>
> and this is my
> controller code
>
>  params[:user_province_id]
>
> it is giving nothing :(
> when i use observe field and use  "params[:user_province_id]" in
> controller then it gives the value easily.
>
> but when i submit the form, this collection_select gives me nothing.
>
> i dont know what is the problem .
> plz n e one help me out
>
>
> thanx in advance
> --
> 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