RailsCasts Pro episodes are now free!

Learn more or hide this

sercul's Profile

GitHub User: sercul

Comments by

Avatar

Hello! Thanks for gem. But I have problem: on editing model with tags, I have empty tags field. I tried both ways of realising but also empty.

ruby
<%= form_for(@post) do |f| %>
...
    <div class="field">
      <%= f.label :tag_list, "Tags (separated by commas)" %><br />
      <%= f.text_field :tag_list %>
    </div>
...
<% end %>

I tried to print simple @post.tag_list, an it is not empty but in form it is empty( Need help.