Re: [Rails] An idea for new syntactic sugar in Ruby

2011-05-20 Thread Curtis j Schofield
if notice = response_status_and_flash.delete(:notice) flash[:notice] = notice end This is a common C idiom. The best solution is to always write your == with the constant on the LEFT instead of the right. :D -- make haste slowly \ festina lente \ - mobile +1_415_632_6001

Re: [Rails] Bash script run rudy script

2011-03-19 Thread Curtis j Schofield
/usr/bin/ruby /backups/s3sync/s3sync.rb -r -s --progress /backups/cpbackup/weekly redwood_server:cpanel/$CYEAR/$CMONTH/$CDAY/ I don't think you want to quote that entire string :-) i concur. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Re: All rails commands give me a PGERROR

2011-03-13 Thread Curtis j Schofield
Hi Bryan, Thanks for your reply. Yes I can log in as any of the three users that I have postgres and two other test users I created in trying to resolve this issue. what host do you have set in your database.yml ? -- make haste slowly \ festina lente \ - mobile

Re: [Rails] A file-upload suddenly seems to be nil

2011-03-13 Thread Curtis j Schofield
On Fri, Mar 11, 2011 at 2:33 PM, Luke kickingje...@gmail.com wrote: Hi there, I posted this issue https://groups.google.com/forum/?hl=de#!topic/carrierwave/ergk9LaO68kat the carrierwave-group, but I'm beginning to think this rather is a rails-issue than a problem with carrierwave. The

Re: [Rails] Re: Error: cannot load such file

2011-03-13 Thread Curtis j Schofield
config.autoload_paths should include 'lib' to load you code - it is strange that this isn't happening. Rails.root is what we use in rails 2 On Sun, Mar 13, 2011 at 9:00 AM, Dave Castellano li...@ruby-forum.comwrote: Whoops, stupid error... require

Re: [Rails] undefined method `model_name in partial .. passing an Array as a collection

2011-03-13 Thread Curtis j Schofield
On Sun, Mar 13, 2011 at 4:42 AM, Erwin yves_duf...@mac.com wrote: In the controller , I am passing an Array as a collection @objects = [item1, item2, item3, item4] in the view I wrote %table#objects = render :partial = 'object', :collection = @objects and in my partial _object.html

Re: [Rails] how to avoid strip character when store marshal object into table?

2011-03-13 Thread Curtis j Schofield
On Sun, Mar 13, 2011 at 9:20 AM, Zhenning Guan li...@ruby-forum.com wrote: I marshal a Model object and store into a table column(text type), it always strip the size into 127. so I can not return a marshal object to model object. how can I make this work? the text column is 2GB- you must

Re: [Rails] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

2011-03-13 Thread Curtis j Schofield
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' database.yml for mysql defaults to this you can change it with socket: /var/run/mysqld/mysqld.sock what i have noticed : 1- no socket file in the /var/lib/mysql/mysql.sock under /var/lib/mysql/. 2- i was

Re: [Rails] How should I properly secure uploaded photos?

2011-03-13 Thread Curtis j Schofield
On Sun, Mar 13, 2011 at 5:47 AM, Phoenix Rising polarisris...@gmail.comwrote: Hey guys, So I'm building a Rails 3 app and one of the major things it needs to do is let users upload photos into their own photo albums. That part in and of itself isn't a problem; where I'm a bit short on

[Rails] Volunteer wanted for part-time non-profit project. work with experienced engineer.

2011-02-25 Thread Curtis j Schofield
Want to be mentored in software practice, develop a relationship with a permaculture based non-profit and work with the following technology rails3,unicorn,mongodb, ruby19, haml, git, rspec and ubuntu? Our team is comprised of you, myself, my apprentice, a ux volunteer and a design and new media

Re: [Rails] Re: Anyone scaling jruby tomcat?

2011-02-03 Thread Curtis j Schofield
benchmarks - multi-process configuration / multi-interpreter setup / and where the community is with respect to jetty/netty/trinidad etc. On Thu, Feb 3, 2011 at 8:53 AM, Deon Silva li...@ruby-forum.com wrote: Yes. What specific info are you looking for. -- Posted via

Re: [Rails] Re: link_to help in Rails 3.0.3

2011-02-02 Thread Curtis j Schofield
if you name your partial partials/rows/asset then you can use :object = Asset.new instead of :locals = ... On Wed, Feb 2, 2011 at 11:22 AM, Edward Stembler li...@ruby-forum.com wrote: Edward Stembler wrote in post #979228: Now I need to figure out how to get it working with jQuery since

Re: [Rails] Configure logger, reopen class

2011-02-02 Thread Curtis j Schofield
2011/2/1 Albert Català li...@ruby-forum.com: Hello, I whish configure logger, adding a prefix in all logger.error(..), a prefix like ERROR--, to be able, then to search in log file, easily. And to do that I had the idea of reopen Logger class, like this:  - In a file placed

Re: [Rails] Configure logger, reopen class

2011-02-02 Thread Curtis j Schofield
2011/2/1 Albert Català li...@ruby-forum.com: Hello, I whish configure logger, adding a prefix in all logger.error(..), a prefix like ERROR--, to be able, then to search in log file, easily. And to do that I had the idea of reopen Logger class, like this:  - In a file placed

Re: [Rails] Rails, Ruby, haml, metaprogramming problem

2010-12-21 Thread Curtis j Schofield
On Tue, Dec 21, 2010 at 10:05 AM, Ralph Shnelvar li...@ruby-forum.com wrote: In HAML I have hundreds of lines like the following:  - xyz = someFuncThatReturnsString('xyz') and elsewhere  %div{'id' = xyz} The above lines work fine. it will help if you can post a 'gist'

Re: [Rails] rails 3 routes

2010-12-21 Thread Curtis j Schofield
On Sun, Dec 19, 2010 at 5:03 PM, Mike C snib...@gmail.com wrote: I'm a little confused about custom routes in rails 3. I have a variable that I had a default value for in rails 2, and changing it to rails 3 version gives this: match 'stories/list/:story_list/:search' = 'stories#index', :as =

[Rails] [Cross Post] Volunteers and Teachers 3 October 22-23 Rails Outreach for Women

2010-09-23 Thread Curtis j Schofield
[Forgive the Crosspost - this is a community mailout ] What: October 22-23 Rails Outreach for Women URL: http://www.meetup.com/sfruby/calendar/14835957/ Short: Wanted : Rails, BDD/TDD, Cucumber, Ruby Teachers / Volunteer Long: Do you want to share your experience? Have you ever thought Gee -