[Rails] Silent Failure when starting Unicorn on Heroku

2013-05-25 Thread Jack R.
Switched my RoR (3.1.3, 1.9.2) app from Thin to Unicorn (4.6.2). It ran fine in development (Mac OSX), but when deploying to production on Heroku, it fails silently (no backtrace, no error detail). Log looks like: Starting process with command `bundle exec unicorn start -p 6069 -c

[Rails] Class design Help!

2013-05-25 Thread oliver bee
I have 3 classes (Truck, Semi, Motorcycle) that all inherit from the Vehicle class. Each subclass has an attribute for Wheels that tells how many wheels the vehicle has (I do not store these values in the database because they will never change) I'm wondering what is the preferred method for

Re: [Rails] Should Customers and Admins be on Separate Tables?

2013-05-25 Thread Colin Law
On 25 May 2013 03:55, Peter pe...@poproj.com wrote: Can I please get everyone's opinion? Should customers and admins be on separate tables? I'm developing an application that has two kinds of users, a customer and an administrator. You have given the game away here by describing them as 'kinds

[Rails] Learn Ruby on Rails from Beginners

2013-05-25 Thread Brijesh Bharadwaj
Interesting experiment being run by codelearn.org - http://www.codelearn.org/learn-ruby-on-rails What do you guys think? Was on the front page of HN for half a day. https://news.ycombinator.com/item?id=5750993 -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] URI::Generic methods

2013-05-25 Thread Love U Ruby
URL normalization :- http://en.wikipedia.org/wiki/URL_normalization - I just read this source. I found a method uri#normalization : http://www.ruby-doc.org/stdlib-2.0/libdoc/uri/rdoc/URI/Generic.html#method-i-normalize-21 But not able to figure out how this method works: require 'uri' uri =

Re: [Rails] (JOBS) 4-5 Remote U.S. based contractors needed for 2-3 month Ruby on Rails Project

2013-05-25 Thread Scott Ribe
Hi Carol, I'm interested in this position. I'll have to update my resume; it's grossly out-of-date because I've been both off the market for several years and very busy on long-term projects, but you can still get at least some idea of my level of experience http://www.elevated-dev.com/Resume/

Re: [Rails] (JOBS) 4-5 Remote U.S. based contractors needed for 2-3 month Ruby on Rails Project

2013-05-25 Thread Scott Ribe
Well, aren't I just the dullest tool in the shed this morning! On May 25, 2013, at 8:26 AM, Scott Ribe wrote: Hi Carol, I'm interested in this position. I'll have to update my resume; it's grossly out-of-date because I've been both off the market for several years and very busy on

Re: [Rails] (JOBS) 4-5 Remote U.S. based contractors needed for 2-3 month Ruby on Rails Project

2013-05-25 Thread Arvind Vyas
Hi Carol, As a part time i would like to work with you , no charge till you not get good code from me :) you can find me here https://github.com/arvindvyas http://stackexchange.com/users/1947278/arv arvalone.wix.com/railsdeveloper i can update my resume with you if you want me type of people

Re: [Rails] Should Customers and Admins be on Separate Tables?

2013-05-25 Thread Emil S
In agreement with Colin's point here. If they all log in with the same login form, I'd store them in a single users table and have a roles field that would help authorize requests using something like CanCan . On 25 May 2013 12:10, Colin Law clan...@googlemail.com wrote: On 25 May 2013 03:55,

Re: [Rails] stub not working

2013-05-25 Thread Andy Lindeman
On Fri, May 24, 2013 at 8:07 AM, Aashish Kiran li...@ruby-forum.com wrote: Hi, I am testing views. I dont understand why stubs are not working. Can anyone help. view code : before(:all) do @current_user = stub(User) assigns[:message] = @current_user end output:

[Rails] Re: Good Ruubyist way

2013-05-25 Thread Paul Julian
a = [1,2,3,4,5,6,7,8,9,10] b= a.reverse.reverse On Friday, May 24, 2013 9:56:39 AM UTC-4, Ruby-Forum.com User wrote: a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] b = a + [nil] p a #= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] p b #= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, nil] Is there any other Rubyist way to

Re: [Rails] Re: Good Ruubyist way

2013-05-25 Thread Jordon Bedwell
On Fri, May 24, 2013 at 10:33 AM, Paul Julian bpj...@gmail.com wrote: a = [1,2,3,4,5,6,7,8,9,10] b= a.reverse.reverse Can't tell if you are trolling or if you think that's actually a good idea. How about just doing: a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] b = a.dup On Friday, May 24, 2013

[Rails] Re: ArgumentError when starting Unicorn on Heroku

2013-05-25 Thread Jack R.
Problem turned out to be in my Procfile. Changed bundle exec unicorn start to bundle exec unicorn and problem went away. Not sure where I found the start syntax. Oh well. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

Re: [Rails] How to develope a standalone application in Rails

2013-05-25 Thread Norm Scherer
I have not used Rails 3.x but with 2.3 I use Instant Rails as a prepackaged system MS Windows. It is basically impossible to have a prepackaged system that runs on Mac and Windows because of the incompatibility of their systems. On InstantRails (available from rubyforge.org) I upgraded the

Re: [Rails] Class design Help!

2013-05-25 Thread Norm Scherer
Maybe you have a particular limited set of vehicles but trucks I know have from 4 to 10 (or more) wheels and motorcycles have 2 or 3 wheels and Semi-trailer trucks have 10 to 20 (or more) wheels depending on application. I would store the number of wheels in the database. Norm On 05/24/2013

[Rails] Re: acts_as_list crashes with non-numeric id

2013-05-25 Thread Greg Willits
Greg Willits wrote in post #1109539: Seems to me acts_as_list has a bug -- I have data where the row id is a random alphaNumeric, not a simple integer. Using acts_as_list with a scope of a related model id, acts_as_list crashes the app due to a faulty query in MySQL something like this:

[Rails] Mysterious Application Error on Heroku

2013-05-25 Thread Assaf Shomer
I converted my app to rails 4. My test suite is green and it runs great locally. I then deploy to Heroku and it crashed with no information at all. It just says Application Error. An error occurred in the application and your page could not be served Heroku logs don't give any info either:

Re: [Rails] Mysterious Application Error on Heroku

2013-05-25 Thread Jordon Bedwell
On Sat, May 25, 2013 at 5:24 PM, Assaf Shomer li...@ruby-forum.com wrote: I converted my app to rails 4. My test suite is green and it runs great locally. I then deploy to Heroku and it crashed with no information at all. It just says Application Error. An error occurred in the application