Skip to content

Commit

Permalink
Something in the production environment didn't like not having the @h…
Browse files Browse the repository at this point in the history
…omerooms hash available on create
  • Loading branch information
rnhurt committed Jan 23, 2009
1 parent 12af55c commit 8ebc1b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/users/students_controller.rb
Expand Up @@ -22,7 +22,7 @@ def new
@homerooms = Student.find(:all, :select => 'homeroom', :group => 'homeroom', :conditions => "homeroom > ''").map { |h| [h.homeroom, h.homeroom] }

respond_to do |format|
format.html # { redirect_to users_path }
format.html
end
end

Expand All @@ -39,6 +39,7 @@ def edit

def create
@student = Student.new(params[:student])
@homerooms = Student.find(:all, :select => 'homeroom', :group => 'homeroom', :conditions => "homeroom > ''").map { |h| [h.homeroom, h.homeroom] }

respond_to do |format|
if @student.save
Expand Down

0 comments on commit 8ebc1b6

Please sign in to comment.