public
Description: El Dorado is a full-stack community web application written in Ruby/Rails.
Homepage: http://almosteffortless.com/eldorado/
Clone URL: git://github.com/trevorturk/el-dorado.git
fixing post quoting

git-svn-id: http://eldorado.googlecode.com/svn/trunk@501 
9c008b19-a030-0410-9975-d76d301b4276
trevorturk (author)
Tue Oct 23 21:40:22 -0700 2007
commit  155ae7271a31ef59bdde4f7082ed2b57ee359d04
tree    002a88f275c38e2c80a24e981d0d38327593a4b6
parent  68a3461460baf51ad4f2c1e321928fe0e57ec0ba
...
53
54
55
56
 
57
58
59
...
53
54
55
 
56
57
58
59
0
@@ -53,7 +53,7 @@ class PostsController < ApplicationController
0
   end
0
   
0
   def quote
0
- @post.body = "[quote=#{@post.user.login}]#{@post.body}[/quote]"
0
+ @body = "[quote=#{@post.user.login}]#{@post.body}[/quote]"
0
     render :template => "posts/new"
0
   end
0
       
...
1
 
2
3
4
5
6
 
7
8
9
...
 
1
2
3
4
5
 
6
7
8
9
0
@@ -1,9 +1,9 @@
0
-<% @post = Post.new if @post.nil? %>
0
+<% @post = Post.new %>
0
 <% form_for @post do |f| -%>
0
   <div class="box" id="box-posts-new">
0
     <span id="reply" class="top">Post a Reply</span><br />
0
       <%= f.hidden_field :topic_id, :value => @topic.id %>
0
- <%= f.text_area :body, :rows => '8', :style => "width:66%;" %>
0
+ <%= f.text_area :body, :value => @body, :rows => '8', :style => "width:66%;" %>
0
       <p>
0
         <%= submit_tag "Post Reply", :disable_with => "Post Reply" %> or
0
         <%= link_to('Upload a New File', new_upload_path, :popup => ['height=530,width=820,status=1']) %>

Comments

    No one has commented yet.