[LRUG] more details of noob problem

Erin Staniland erin at withassociates.com
Wed Apr 25 14:48:35 PDT 2007


Hi Thomas

Assuming that's the complete user_controller.rb file, it looks like
need an extra end, on the end.

I'm not sure about your other error.

Erin.

On 25/04/07, Thomas Tilley <thomas.tilley at gmail.com> wrote:
> 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 :(
>
> _______________________________________________
> chat mailing list
> chat at lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>


-- 
With Associates

2 Glebe Road
London  E8 4BD
+44 (0) 20 7923 4757
www.withassociates.com


With Associates (c) is the trading name of With Associates UK LLP
Registered in England under registration No. OC313207
Registered office: 2 Glebe Road, London, E8 4BD



More information about the Chat mailing list