HOW TO SPECIFY CSS

<%= post.body, :class=> "body_text" %>

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 :confused:

error: SyntaxError in Posts#show

Remove the comma.

Best,

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 :confused:

error: SyntaxError in Posts#show

Remove the comma.

Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@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 />

Philip Gavrilos wrote:

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 :confused:

error: SyntaxError in Posts#show

Remove the comma.

Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org

when i remove the comma im getting this:

Yeah, sorry, that was a mistake on my part. You will probably have to wrap post.body in a div or span to specify the appropriate class.

Best,