On Thu, Jun 12, 2008 at 8:45 PM, frogstarr78 <[EMAIL PROTECTED]> wrote:
>
> config.active_record.configure do |db|
>   db.database = 'test_app_production'
>   db.socket   = IO.popen("mysql --help") {|f| f.read() =~ /^socket(.+)
> $/ && $1.strip }
>   db.credentials = "#{ENV["home"]}/.my.cnf"
> end
>
> Good idea or not, I'm just throwing it out there. Not that you
> couldn't have done this in yml but...

db.socket = `mysql_config --socket`.strip even :)

jeremy

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to