diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 4e02086ca..3e366cadf 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -17,7 +17,7 @@ class UsersController < ApplicationController end def create - @user = User.new(params[:user]) + @user = User.new(params[:jam_ruby_user]) if @user.save sign_in @user flash[:success] = "Welcome to the Sample App!" @@ -31,7 +31,7 @@ class UsersController < ApplicationController end def update - if @user.update_attributes(params[:user]) + if @user.update_attributes(params[:jam_ruby_user]) flash[:success] = "Profile updated" sign_in @user redirect_to @user diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 49b0dace0..9d88e495a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -2,7 +2,7 @@ module ApplicationHelper # Returns the full title on a per-page basis. def full_title(page_title) - base_title = "Ruby on Rails Tutorial Sample App" + base_title = "Jamkazam" if page_title.empty? base_title else diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index e39ac8199..94be3b144 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -16,7 +16,7 @@