Displaying 1 result from an estimated 1 matches for "84e003".
Did you mean:
841003
2008 Jan 23
11
Rails 2.0.2 + RJS
...es 2 + 3
of create.rjs)
create.js
page.insert_html :bottom, ''comments'', :partial => ''comment''
page.visual_effect :appear, "comment_#{@comment.id}"
page.visual_effect :highlight, "comment_#{@comment.id}", {:startcolor
=> ''"#84E003"''}
commentscontroller.rb:
def create
@comment = Comment.new(params[:comment])
@comment.user = User.find(current_user)
@comment.story = Story.find(params[:story_id])
respond_to do |format|
if @comment.save
format.html { redirect_to story_url(@comment.story) }...