Guo Yangguang | 20 Jul 09:49

about generated id


hello:
1 what is html element's id generated from the <%=select
"user","section",User::SHIJIAZHUANG-%>,
it is:user_section ?
2 can i user an instance variable come from an action for select choice
param?
for example:<%=select "user","section",@section-%>

Thank you!
--

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

Frederick Cheung | 20 Jul 12:29

Re: about generated id


On Jul 20, 8:52 am, Guo Yangguang <rails-mailing-l...@...>
wrote:
> hello:
> 1 what is html element's id generated from the <%=select
> "user","section",User::SHIJIAZHUANG-%>,
> it is:user_section ?
Well the easiest way is to check for yourself but that sounds about
right.

> 2 can i user an instance variable come from an action for select choice
> param?
> for example:<%=select "user","section",@section-%>
>
Of course you can.

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


Gmane