Marnen Laibow-Koser wrote: > Philip Gavrilos wrote: >> John Yerhot wrote: >>> <%= post.body, :class=> "body_text" %> >>> >>> On Aug 10, 11:40�am, Philip Gavrilos <rails-mailing-l...@andreas- >> >> >> I have been tried this but dint work :/ >> >> error: SyntaxError in Posts#show > > Remove the comma. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > mar...@marnen.org
when i remove the comma im getting this: ArgumentError in Posts#show Showing app/views/posts/_post.html.erb where line #6 raised: wrong number of arguments (1 for 0) 6: <%= post.body :class => "body_text" %><br /> -- 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@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 -~----------~----~----~----~------~----~------~--~---