Hi Brett,

"request" is a variable/method only available in the scope of actions
inside your controllers. It's not available from the console.

What error do you get when you deploy that app and open it in the browser?

On Mon, Apr 26, 2010 at 1:38 AM, Brett <brett.huneyc...@gmail.com> wrote:
> Hi all,
>
> I've built a simple Rails app that now works on Heroku (http://
> LetThemPlayHorse.com).
>
> I'm trying to record users' IP addresses to a SQL database using the
> following command from my "signatures" controller in the "create"
> action:
> @signature.ip_address = request.remote_ip
> where ip_address is a "char" type
>
> This works great on my local Mongrel server, but I get an error on
> Heroku -- the console tells me:
> NameError: undefined local variable or method `request'
>
> Do you have any advice or suggestions?
>
> Many thanks!
> Brett
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Heroku" group.
> To post to this group, send email to her...@googlegroups.com.
> To unsubscribe from this group, send email to 
> heroku+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/heroku?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to