I'm stuck. On edit I grab a handful of data from the database and print the values in input fields. That part is working well. I want to print on the values without using a text field but can't seem to figure out how.
Form:
<%= form_for(@post, :html => {:multipart => true}) do |f| %>
Currently working for printing my title value from the database into text field:
<%= f.text_field :title, :size => "65%" %>
Controller:
def edit
@post = Post.find(params[:id])
end
I've tried quite of bit of variations, but I'm a newbie.
<%= post.title %>
<%= @post.title %>
<%= f.title %>
<%= :title %>(lol)
Thanks in advance for the help!