[Rails] Re: How to send a cookie without having it CGI escaped

2013-06-24 Thread anywho
I ended up using headers['Set-Cookie'] = 'cookiename=key=value@key2=value2; domain=.domain.com; path=/' -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] How to send a cookie without having it CGI escaped

2013-06-24 Thread anywho
hi, I'm trying to get a cookie to store in the format key=value@key2=value2 ( compatibility reasons over which I have no control ). However, when the cookie get's set, it is stored as key%3Avalue%40key2%3Avalue2 which is what the CGI.escaped version of key=value@key2=value2 looks like. How

[Rails] Re: mysql quotation wonky

2011-02-09 Thread anywho
So I solved it by doing a RACK_ENV=test before running my task. I suspect a bug since this probably shouldn't have been required and luckily all my related tasks here were to do with test, but they may not have been. Anyway, FYI On Feb 9, 9:28 am, anywho wrote: > this is happening in pr

[Rails] Re: mysql quotation wonky

2011-02-09 Thread anywho
So I solved it by doing a RACK_ENV=test before running my task. I suspect a bug since this probably shouldn't have been required and luckily all my related tasks here were to do with test, but they may not have been. Anyway, FYI On Feb 9, 9:28 am, anywho wrote: > this is happening in pr

[Rails] Re: mysql quotation wonky

2011-02-09 Thread anywho
this is happening in production only it would seem. Running 1.9.2 with an isolated gem env via rvm Fedora release 8 (Werewolf) Gems included by the bundle: * ZenTest (4.4.0) * abstract (1.0.0) * actionmailer (3.0.4) * actionpack (3.0.4) * activemerchant (1.5.1) * activemodel (3.0.4)

[Rails] Re: mysql quotation wonky

2011-02-08 Thread anywho
t;schema_migrations"."version" FROM "schema_migrations" Anyone? On Jan 27, 11:28 pm, anywho wrote: > Why would, in an upgrade from 3.0.1 to 3.0.3, a rake db:migrate run > this: > > SELECT "schema_migrations"."version" FROM "schema_migrations"

[Rails] mysql quotation wonky

2011-01-27 Thread anywho
Why would, in an upgrade from 3.0.1 to 3.0.3, a rake db:migrate run this: SELECT "schema_migrations"."version" FROM "schema_migrations" vs this ? SELECT `schema_migrations`.`version` FROM `schema_migrations` __ rake db:migrate output __ rake aborted! Mysql::Error: You have an error in your SQL

[Rails] Re: rails 3.0.3 and visit_CoercibleString errors

2010-11-23 Thread anywho
On Nov 19, 12:30 pm, Colin Law wrote: > On 19 November 2010 17:43, anywho wrote: > > Could you not top post please, it is easier to follow the thread if > replies are interleaved into previous message as appropriate.  Thanks. > > > Hi Colin and thanks for your reply. &

[Rails] Re: rails 3.0.3 and visit_CoercibleString errors

2010-11-19 Thread anywho
isit_CoercibleString error remaining. The call stack is offering no clues. On Nov 18, 8:50 am, Colin Law wrote: > On 16 November 2010 19:18, anywho wrote: > > > From having no errors with 3.0.2 I now see lots of these errors when > > running my tests. > > &g

[Rails] Re: rails 3.0.3 and visit_CoercibleString errors

2010-11-18 Thread anywho
anyone? On Nov 16, 11:18 am, anywho wrote: > From having no errors with 3.0.2 I now see lots of these errors when > running my tests. > > undefined method `visit_CoercibleString' for # 0x01074f4298> > > Anyone know what this is? -- You received this message bec

[Rails] rails 3.0.3 and visit_CoercibleString errors

2010-11-16 Thread anywho
>From having no errors with 3.0.2 I now see lots of these errors when running my tests. undefined method `visit_CoercibleString' for # Anyone know what this is? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send

[Rails] ActiveRecord::StatementInvalid Mysql::Error: MySQL server has gone away

2010-08-23 Thread anywho
Suddenly exceptional is sending emails about Mysql having gone away in production. This had not been an issue until, well, today. No changes have even been made. We see this with an internal product as well. Does anyone know how to prevent this from happening? Why isn't rails handling this more gra

[Rails] Re: Paperclip - Amazon S3 - https

2010-08-21 Thread anywho
On Aug 10, 12:29 am, Colin Law wrote: > On 10 August 2010 01:29, Sandy wrote: > > Please don't top post, it makes it difficult to follow the thread. > Insert your reply at appropriate points in the previous mail.  Thanks. > > > Daniel, > > > While I'm sure that you had good intentions, the tuto

[Rails] Re: testing authentication with basic_auth

2010-07-29 Thread anywho
here we go... I filed this ticket: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5246 On Jul 29, 8:31 pm, anywho wrote: > I should probably mention that this is with rails3  and the file you > refer to doesn't exist in rails3 > > On Jul 29, 8:27 

[Rails] Re: testing authentication with basic_auth

2010-07-29 Thread anywho
I should probably mention that this is with rails3 and the file you refer to doesn't exist in rails3 On Jul 29, 8:27 pm, anywho wrote: > Thanks but that didn't help. I've followed the documentation here: > > http://api.rails.info/classes/ActionController/HttpAuthentic

[Rails] Re: testing authentication with basic_auth

2010-07-29 Thread anywho
> Cheers, > Bala > RoR Developer Now Available for Hire > > > > > > On Thu, Jul 8, 2010 at 9:21 AM, anywho wrote: > > hi, I've got an api which is using > > authenticate_or_request_with_http_basic > > > What are you guys using to test this? I'm us

[Rails] testing authentication with basic_auth

2010-07-08 Thread anywho
hi, I've got an api which is using authenticate_or_request_with_http_basic What are you guys using to test this? I'm using rspec, and before I was using rspec-rails, I was using authorize from Rack::Test to do the authentication. However, authorize clearly doesn't work when using rspec-rails, so I

[Rails] Re: testing and migrations

2010-06-27 Thread anywho
Marnen Laibow-Koser > > wrote: > >> anywho wrote: > >>> does rails always need to update the development database before > >>> running the > >>> tests? It seems to insisit on running db:migrate before. > > >> Your production DB is

[Rails] testing and migrations

2010-06-26 Thread anywho
does rails always need to update the development database before running the tests? It seems to insisit on running db:migrate before. Why can't it just update the test database? This can be annoying if I'm in a production environment and I don't want a migration to happen until I know the tests pas

[Rails] Re: Handling custom error files (404/500) in Rails 3

2010-05-30 Thread anywho
anyone? On May 27, 10:29 am, anywho wrote: > I've been looking at rescue_from and rescue_action_in_public however, > none of them have worked without making a catch-all route. > > So currently, my solution is to use the catch-all route:   match > '*path' =>

[Rails] Handling custom error files (404/500) in Rails 3

2010-05-27 Thread anywho
I've been looking at rescue_from and rescue_action_in_public however, none of them have worked without making a catch-all route. So currently, my solution is to use the catch-all route: match '*path' => "controller#action" # custom 404 which then renders a 404 with the appropriate layout whethe

[Rails] Rails 3 is slooowww

2010-05-26 Thread anywho
Why is rails3 so slow to initialize? I am running 1.9.1 which I know is known to give some rails3 issues. Can that be the reason? Here's a very very basic test. $ rvm 1@rails2 $ rails new_rails2 $ cd new_rails2 $ time ./script/runner '' real0m1.583s $ rvm 1@rails3 $ rails new_rails3

[Rails] Project not serving static pages in production mode (ror3.beta3)

2010-05-05 Thread anywho
hi, During the migration to a new server, I started running into some issues. I'd been running production on passenger which does not seem to have any problems, but the idea was to now use unicorn or thin or some other server to spawn the instances. When starting unicorn, thin or webrick in produ