Hi
I need something like :
<% obj = params[:obj].find(params[:obj_id]) %>
<textarea id="mce_edit" style="height:430px; width:100%;">
<%= obj.params[:obj_method] %>
</textarea>
in a partial. params[:obj] and params[:obj_method] are strings like
TrstSysPage, title. params[:obj_id] is number and is only working for
the rest I got
undefined method `params' for #<Enumerable::Enumerator:0xb4b38b48>
Extracted source (around line #17):
14: <body style="background-color : #AFAFAF; padding: 10px 10px 0
10px;">
15: <% obj = params[:obj].find(params[:obj_id]) %>
16: <textarea id="mce_edit" style="height:430px; width:100%;">
17: <%= obj.params[:obj_method] %>
18: </textarea>
19: <p style="padding: 15px 0 0 10px">
I'm stuck :)
--
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
-~----------~----~----~----~------~----~------~--~---