Does my below code make sense...is it right?
<%...@profile = UserPrivilege.find_all_by_user_id(4)%>

 <%= options_from_collection_for_select(Profile.find(:all,:conditions =>
{:id => "#[email protected]{|s| s.profile_id}}"},'id','name')%>

i get the below error when i run it..

Development/app/views/reports/_list.rhtml:116: syntax error, unexpected
',', expecting tASSOC
...map{|s| s.profile_id}}"},'id','name')).to_s); @output_buffer...

/Development/app/views/reports/_list.rhtml:116: syntax error, unexpected
')', expecting kEND
...ile_id}}"},'id','name')).to_s); @output_buffer.concat "\n"

Any helps
-- 
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