Skip to content

Commit

Permalink
page field works now
Browse files Browse the repository at this point in the history
  • Loading branch information
Sporky023 committed Jul 16, 2012
1 parent 0456c92 commit 6582f5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions generators/feedback_form/templates/feedback_model.rb.erb
Expand Up @@ -5,6 +5,7 @@ class <%= model_class_name %>
self.subject = params[:subject]
self.email = params[:email]
self.comment = params[:comment]
self.page = params[:page]
end

def valid?
Expand Down
Expand Up @@ -2,7 +2,7 @@ class <%= controller_class_name %> < ApplicationController
layout false

def new
@feedback = <%= model_class_name %>.new
@feedback = <%= model_class_name %>.new(page: request.referer)
end

def create
Expand Down

0 comments on commit 6582f5a

Please sign in to comment.