Bootstrap Modal for Show Page

David Williams wrote in post #1182748:

Walter Davis wrote in post #1182744:

# views/posts/modal.html.erb

# routes.rb

  resources :posts do     member do       get :modal     end   end

I tried this method, but it went back to the default one image showing problem that I had earlier. I will see if I can find a way around it.

Your project is working without issue. I'm going to go through the code with a fine toothpick and figure out why mines is only showing the dimmed background.

I got it!!!

def show     @post = Post.find(params[:id])     @new_comment = Comment.build_from(@post, current_user.id, "")     respond_to do |format|       format.html {render :file => "posts/modal", layout: false}       format.js {render :file => "posts/modal", layout: false}       format.json {render json: @post }     end   end