search for: permissionscontroller

Displaying 2 results from an estimated 2 matches for "permissionscontroller".

Did you mean: permission_controller
2008 Oct 17
1
ActionMailer template gets nil param from non-nil deliver_
...permit_ip})" # etc. end This is invoked through this method in my ActionController::Base class: def create @permission = Permission.new(params[:permission]) if @permission.save # @permission is non-nil, and as expected, in the following log: logger.info "In PermissionsController#create, @permission = #{@permission.inspect}" MyMailer.deliver_request(@permisssion) # Mail the request to approvers. # etc. end end As noted in the comments, @permission is non-nil when passed to deliver_request(). In request(), the corresponding parameter, req, is nil....
2012 Jan 05
8
js update partial missing template
PermissionsController def add_member ...snip... @permissions = Permission.all respond_to do |format| format.html { flash[:messages1] = @permission.user.name + " has been given rights." } format.js end end app/views/permissions/add_member.js.erb $(''#privi...