Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. class TopicContent < ActiveRecord::Base
  2. unloadable
  3. belongs_to :topic
  4. validates_presence_of :text
  5. end
  6.  
  7. <%= f.fields_for :topic_content do |tf| %>
  8. <%= tf.text_area :text , :id => 'topic_text', :cols => 100 , :rows => 15, :class => 'topic_text' %></p>
  9.  
  10. <% @topic.errors.full_messages.each do |msg| %>
  11. <li><%= msg %></li>
  12. <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement