[Rails] capistrano: deploying production and staging to same database

2014-05-01 Thread 'John Merlino' via Ruby on Rails: Talk
I have the production and staging site on two different server ips. But the database, another server ip, is the same database used by both production and staging. When i set up the capistrano deploy task for both the production and staging, should I keep the db role in deploy.rb like this:

[Rails] Re: Switching Industries: Looking for advice/help

2014-05-01 Thread johnelahr
I'm glad to hear I'm not the only one. I'm an operations manager for a natural food manufacturer who through his working career discovered a love for databases (i really like to normalize data - if you have some data needs, let me know) and after a bunch of fits and starts with asp, php,

[Rails] Re: How to create a search bar for searching youtube videos using youtube_it

2014-05-01 Thread yassine sania
Whatever the user passes you gonna find it in the params hash so in your case: @videos = $client.videos_by(:tags = params[:search]) Read this: Action controller overviewhttp://guides.rubyonrails.org/action_controller_overview.html On Wednesday, April 30, 2014 5:59:19 PM UTC+2,

[Rails] Re: Switching Industries: Looking for advice/help

2014-05-01 Thread Ole Ingemann Kjørmo
Interesting story. I can tell you are in the same boat as myself. I am moving on from the oil industry with background in geophysics into starting our own small IT company with a friend (our products are mainly build on Ruby+Rails). My interest for RoR started 2-3 years ago and I have since

[Rails] Re: capistrano: deploying production and staging to same database

2014-05-01 Thread Frederick Cheung
On Thursday, May 1, 2014 7:50:36 AM UTC+1, John Merlino wrote: I have the production and staging site on two different server ips. But the database, another server ip, is the same database used by both production and staging. When i set up the capistrano deploy task for both the

[Rails] [Job] Ruby-on-Rails developer needed

2014-05-01 Thread Benny R.
Software Engineer - Ruby on Rails Location: Brooklyn, NYC Permanent - Direct Hire Salary: Competitive We are looking for a talented and motivated software engineer with excellent problem solving skills and proficient product development experience. Experience working in the financial world is a

[Rails] can preloading use just a single query per table (even if referenced multiple times)

2014-05-01 Thread Yavor Nikolov
Hi, Let's take a look at the following example: Visitor.preload( {allowed_meals: [:meal]} {meal_availabilities: [:meal]} ) What happens is that Rails (I'm using version 4.1) is issuing several queries to meals: Meals Load ... SELECT * from meals where id in (1, 2, 3, 4, 5) # using

[Rails] Re: Ruby on Rails 4.1 - Random SWF backgrounds in layout

2014-05-01 Thread mike2r
On Wednesday, April 30, 2014 11:46:50 AM UTC-4, Kazuna Nakama wrote: Thanks! So I renamed /views/background/randomize.html.erb to /views/background/_randomize.html.erb and changed the method name in the background controller to _randomize as well. I put %= render :partial =

Re: [Rails] [Job] Ruby-on-Rails developer needed

2014-05-01 Thread Thiago Cifani
US Citizens only? Sent from my iPhone On 01/05/2014, at 15:55, Benny R. li...@ruby-forum.com wrote: Software Engineer - Ruby on Rails Location: Brooklyn, NYC Permanent - Direct Hire Salary: Competitive We are looking for a talented and motivated software engineer with excellent

Re: [Rails] Re: Switching Industries: Looking for advice/help

2014-05-01 Thread tamouse pontiki
IMO, the *single* most important thing to switch to becoming a developer is to understand how to structure and break down problems into solvable software components. To me, this far more important than learning any particular language, as designing solutions to problems is at the heart of software

[Rails] staging server unexpectedly started installing gems during staging deploy

2014-05-01 Thread 'John Merlino' via Ruby on Rails: Talk
I have a production server and a staging server and a production git branch and a staging git branch for the same repository on github. The production git branch and staging git branch are identical. I got my staging server running and during the second deploy, something unexpected started