The first line of code is defective.  Looks like you accidentally deleted a
line break.

You have "class StudentController < ApplicationControllerdef respond"

should be "class StudentController < ApplicationController"
and the next line starts the "def respond"

James Mason
Systems Administrator/Safety & Environmental Director
Yamato Engine Specialists
360-306-5017


On Sun, Aug 31, 2008 at 3:18 PM, Josh <[EMAIL PROTECTED]> wrote:

>
> Hey Tom,
> I made the exact same mistake!  Try exchanging respond with answer,
> providing you're using answer.html.erb in your views.
>
>  def answer
>    @user = User.new(params[:user])
>    @user.save
>  end
>
> Best Regards,
> Josh
>
> On Aug 31, 11:53 am, "Tom Brooke" <[EMAIL PROTECTED]> wrote:
> > I am using a response file in my student app for lesson 6 and I get
> > the following error message.
> > I think the problem is that my SudentController class has has
> > ApplicationControllerdef respond statement whicih is not in the
> > examples
> > I attached a screen shot file since I couldn't cut and past from my
> netbeans:
> >
> > My error message is
> >
> > undefined local variable or method `respond' for main:Object
> >
> > RAILS_ROOT: /home/Tom/NetBeansProjects/studentapp
> > Application Trace <http://localhost:8080/studentapp#> | Framework
> > Trace<http://localhost:8080/studentapp#>| Full
> > Trace <http://localhost:8080/studentapp#>
> >
> > app/controllers/student_controller.rb:1:in
> >
> `/home/Tom/NetBeansProjects/studentapp/app/controllers/student_controller.rb'
> > app/controllers/student_controller.rb:215:in `load'
> >
> > I hope this is enough Information
> >
> > Tom
> >
> >  Screenshot.png
> > 255KViewDownload
> >
>



Confidentiality Notice:
The documents accompanying this electronic transmission may contain 
confidential information. The information is intended only for the use of the 
individual(s) or entity named above. If you are not the intended recipient, you 
are notified that any disclosure, copying, distribution or taking of any action 
in reliance on the contents of this electronic information is not permissible. 
If you have received this electronic document in error, please immediately 
notify us by telephone at (360)733-1916.
Thank you.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to