@title = params[:title]
end
rescue ActiveRecord::RecordNotFound
+ @title = t'message.no_such_user.title'
render :action => 'no_such_user', :status => :not_found
end
@to_user = User.find(message.from_user_id)
render :action => 'new'
rescue ActiveRecord::RecordNotFound
+ @title = t'message.no_such_user.title'
render :action => 'no_such_user', :status => :not_found
end
@message.message_read = true if @message.to_user_id == @user.id
@message.save
rescue ActiveRecord::RecordNotFound
+ @title = t'message.no_such_user.title'
render :action => 'no_such_user', :status => :not_found
end
end
end
rescue ActiveRecord::RecordNotFound
+ @title = t'message.no_such_user.title'
render :action => 'no_such_user', :status => :not_found
end
end