Hi
   I have the code

  def index
    @messages = message_thread.messages
  end

private

  def message_thread
    begin
      current_user.message_threads.find(params[:thread_id])
    rescue ActiveRecord::RecordNotFound
      logger.warn "No permission or thread_id nil"
      render :file => "#{RAILS_ROOT}/public/404.html"
    end
  end


    And even if params[:id] does not have any values I dont get any
exception . I can't figureout why. Please help

Thanks
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to