Sha256: d548e919f466e24aae638b1aeaeee795933554531c6bec1484b31858a731b18f
Contents?: true
Size: 756 Bytes
Versions: 5
Compression:
Stored size: 756 Bytes
Contents
/ this form is usually brought in by a remote call to sit on the page in the place of the post itself. - message_type = @topic.page ? 'comment' : 'message' - form_for :post, :url => topic_post_path(@topic, @post), :html => {:method => 'put', :multipart => true, :id => "post_form_#{@post.id}", :class => 'friendly'} do |f| = render :partial => 'posts/form', :object => f %p.buttons = f.submit "Save changes" or = link_to "cancel", topic_post_path(@topic, @post), :class => 'cancel' - content_for :pagetitle do Edit = message_type - content_for :breadhead do = link_to @post.topic.name, forum_topic_url(@post.topic.forum, @post.topic), {:class => 'breadhead'} - content_for :controls do = render :partial => 'readers/controls'
Version data entries
5 entries across 5 versions & 1 rubygems