Ruby on Rails

Html code posted
created at 01 Jul 15:34, updated at 01 Jul 15:44

Edit | Back
1
2
3
4
5
6
7
8
9
def show
  @post = Post.find_by_id(params[:id])
end

<%= stylesheet_link_tag 'blog', 'coderay' %>  

<%= title @article.title %>  
<p class="author">from <%= @article.author %></p>  
<%= coderay(@article.content) %>  
225 Bytes in 2 ms with coderay