Thank you.

I know the 'format'  cause trouble, it's a private method ,    cause
stop  calling  method_missing,
   I change 'format' to 'formater' or other form, it's be fine.

but why this is good :
--------------------------------------------------
app/views/release/show.html.erb
--------------------------------------------------
<p>
  <b>Movie:</b>
  <%=h @release.movie_id %>
</p>

<p>
  <b>Format:</b>
  <%=h @release.format %>
</p>

<p>
  <b>Released on:</b>
  <%=h @release.released_on %>
</p>

<%= link_to 'Edit', edit_release_path(@release) %> |
<%= link_to 'Back', releases_path %>


Could u help me understand it ?




On Dec 16, 8:52 pm, "Hassan Schroeder" <hassan.schroe...@gmail.com>
wrote:
> On Tue, Dec 16, 2008 at 1:36 AM, 浩翔 <blackange...@gmail.com> wrote:
> > there is have a error.    "Attempt to call private method"   ---
> > format
>
> See: <http://wiki.rubyonrails.org/rails/pages/ReservedWords> -- the
> "reported to cause trouble" section includes 'format'.
>
> You might want to rename that attribute of your model.
>
> HTH,
> --
> Hassan Schroeder ------------------------ hassan.schroe...@gmail.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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to