rails 3 (on bamboo) + bundler

2010-04-26 Thread Shane Becker
is anyone having success with bundler?
namely, are your dev only gems *not* compiled into your production slug?

mine are. it's making kittens cry.

thanks
sb



still vegan. still straightedge.
shane becker
+1 801 898-9481
blog: http://iamshane.com
shirts: http://theresistancearmy.com



-- 
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.



Re: Recording user IP address in SQL database

2010-04-26 Thread Walker Hagius

I'm recording user IP addresses using request.remote_ip and it works
fine. Note that I'm doing it in a controller so I have access to the
request object--it wouldn't work from the console, unless maybe you
did some extra setup.


On Apr 26, 1:38 am, Brett  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 
> athttp://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.



Re: Recording user IP address in SQL database

2010-04-26 Thread Pedro Belo
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  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.



Recording user IP address in SQL database

2010-04-26 Thread Brett
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.