Tony
Tony

Reputation: 1011

Why does the following appear when I start the Rails server instead of something functional?

< %= render :partial => "message_form" %> < %= render :partial => @posts %>

What is displayed above is the code I had written down in index.html.erb, but it is also displaying on my local host page as well. Maybe it's a routing issue?

I am following this guide to building a mockup Twitter: http://www.noupe.com/ajax/create-a-simple-twitter-app.html

Upvotes: 0

Views: 50

Answers (1)

Michael Fairley
Michael Fairley

Reputation: 13208

There's not supposed to be a space in between the < and the %:

<%= render :partial => "message_form" %> <%= render :partial => @posts %>

Upvotes: 3

Related Questions