Ruby on Rails Sunday, September 28, 2014


Hey

I am using the gettting started with rails tutorial on Rails guide  http://guides.rubyonrails.org/getting_started.html#showing-articles

I am up to session 5.7 Showing articles. I am stuck on this session as i have changed my parameters to be strong and all went well. I have defined my show method in my controller however, when i link this to the HTML file i put this code as seen below however when i run it it shows an error saying line 3 .title is undefined. Any advice would be great.

Thanks 

<p>
  <strong>Title:</strong>
  <%= @article.title %>
</p>
 
<p>
  <strong>Text:</strong>
  <%= @article.text %>
</p>


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fda3127a-8d9d-4332-813c-b4b79231ec20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment