[LRUG] more details of noob problem

Thomas Tilley thomas.tilley at gmail.com
Wed Apr 25 14:40:29 PDT 2007


OK (so as you all guessed I am using a tutorial). I haven't been able to
find out where the error is.

I think the offending code is somewhere on the controller-the code is below:

class UserController < ApplicationController
def index
@title = "Crowded Film User Hub"
end
def register
@title = "Register"
if request.post? and params[:user]
@user = User.new(params[:user])
if @user.save
flash[:notice] = "User #{@user.screen_name} created!"
redirect_to :action => "index"
end
end
end


The error I'm getting is below:

app/controllers/user_controller.rb:14: syntax error, unexpected $end,
expecting kEND



On other pages I'm seeing this (I guess related) error:

--- !map:HashWithIndifferentAccess
action: index
controller: site


As you can guess I'm way out of my depth. Just hoping to learn a little
before I drown :(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20070425/9063dbb0/attachment-0003.html>


More information about the Chat mailing list