Ok I am on rails 2.1

My show view does not have a"for_for"  but the controller has
@nocpage = Nocpage.find(params[:id])

and the view for section i am trying to use:

<b>Companyname:</b>
<%=h @nocpage.companyname %>

I tried doing:
<% @name = @nocpage.companyname %>
<%= in_place_editor_field 'name', :companyname %>

but I keep getting:

undefined method `companyname' for "att":String.  Why does it keep
saying undefined method?

--~--~---------~--~----~------------~-------~--~----~
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