07 Mar '13, 4am

Using existing SQL Server database with Ruby on Rails - Stack

You're in luck, friend. My first Rails project (7 years ago) was against a horribly set up SQL Server database. Per the above, you need to set up your database.yml appropriately. But for an existing database, obviously it is unlikely that the table and column names conform to the Rails conventions. The good news is that you can override all of those defaults. Here is a non-exhaustive list of those directives: In a model descended from AR::Base, set_table_name 'actual_table_name' set_primary_key 'actual_primary_key_name' On the various association directives (has_one, has_many, belongs_to), there are :foreign_key keys that let you specify the name of the foreign keys. Now, one of the things that MS SQL Server allows you to do which is TERRIBLE is that you can embed spaces into your column names. Fear not, you can still refer to these columns by name using write_attribute("b...

Full article: http://stackoverflow.com/questions/15262877/using-existin...

Tweets

Inspecting Rails 4 using Ruby 2.0

rubyflow.com 06 Mar '13, 5pm

Inspecting Rails 4 using Ruby 2.0 Posted by mattetti on March 06, 2013 — 0 comments Ruby 2.0 has a brand new feature very ...

inspecting Rails 4 using Ruby 2.0:

matt.aimonetti.net 06 Mar '13, 4pm

Being curious and since I just started a brand new Rails 4/Ruby 2 app, I decided to write a little middleware and see what...

Ruby on Rails: ActiveRecord with SQL Database #...

blogs.msdn.com 12 Mar '13, 3pm

Just a quick note that I've udpated a previous blog post (http://blogs.msdn.com/b/silverlining/archive/2011/09/14/using-ac...

#FACEBOOK Installing a ruby on rails website on...

freelancer.com 05 Mar '13, 11pm

a very simple request, I need someone to install this site (files can be found here):- https://github.com/ParsePlatform/An...

desde se puede descargar Ruby, Rails y RubyGems...

rubyonrails.org 16 Mar '13, 7am

We recommend Ruby 1.9.3 for use with Rails. Rails 3.2 is the last one that supports Ruby 1.8. Ruby 1.8.6 and earlier are n...

@sebabromberg Grandes compañías que usan Ruby

blog.obiefernandez.com 18 Mar '13, 3am

Woke up this morning to the following email request from the CTO of one of Hashrocket 's big, important clients: Can you g...

Come implementare un drag&drop per l’upload delle immagini in Ruby on Rails

Come implementare un drag&drop per l’upload del...

dynamick.it 07 Mar '13, 9am

class ImagesController < ApplicationController respond_to :json, :html, :js protect_from_forgery :except => :create # POST...

#RubyOnRails Troubleshoot and bug fix Ruby on R...

freelancer.com 05 Mar '13, 11pm

I'm looking for an experienced Ruby on Rails Developer (3 years+) to work on an existing site that is deployed and live. T...

UK Women: Interested in learning web programmin...

railsgirls.com 09 Mar '13, 6pm

Applications close: April 4th Acceptances informed: April 11th Location: Mady by Many, Diespeker Wharf, 38 Graham Street, ...

We're looking for a Ruby on Rails Developer, 2-...

betapond.com 06 Mar '13, 8am

Want to work with some of the world’s best-known brands? Want to join a fast-growing social technology company? £30-£55K +...

Active Record: The Rails Database Bridge: In th...

net.tutsplus.com 01 Mar '13, 7pm

Like I said, Active Record is an ORM. This means it's a layer of Ruby code that runs between your database and your logic ...

#RoR #job - similar using Ruby on rails ($750 -...

buychina.com 09 Mar '13, 9am

About the Chinese online store BuyChina BuyChina - an international version of the largest online store of China Taobao. T...

Gave a Ruby on Rails conversation starter badge to customs security lady, she spotted it in my bag &her name was Ruby

Gave a Ruby on Rails conversation starter badge...

lanyrd.com 08 Mar '13, 9am

Natalie and I will be schmoozing and mingling at SXSW Interactive this year - find us and get some flair for your lanyard....

ruby - Error with new Rails 3.2.8 project - `re...

stackoverflow.com 04 Mar '13, 4pm

I've just created a new amazon Linux instance and installed ruby 1.9.3 and rails 3.2.8. Upon creating a new project I imme...

How do I use Twitter Bootstrap with Ruby on Rai...

stackoverflow.com 11 Mar '13, 5am

I'm switching from PHP to Ruby on Rails and I'm loving it, the only thing is I'm so used to Twitter Bootstrap for most of ...