[Rails] Re: generate csv from ruby object

2009-03-19 Thread Eifion Bedford
Have you looked a Comma, http://redartisan.com/2009/3/10/comma-intro ? Eifion http://asciicasts.com Twitter: @eifion On 19 Mar 2009, at 17:55, Dhaval Phansalkar wrote: > > hi all, > > is there any method/way to generate a csv from an object directly? > e.g. > @object.to_csv that will create a

[Rails] Re: simple select

2009-02-27 Thread Eifion Bedford
It looks from your code as if you're returning a list of user galleries rather than a single one, so the list you get won't have a photos method. Does your code work if you change the third line in your method to @gallery = @user.galleries.first Eifion http://asciicasts.com Twitter: @eifion O

[Rails] Re: Ruby on Rails: Talk | Google Groups

2009-02-11 Thread Eifion Bedford
Have you looked at the Railscast on subdomains? http://railscasts.com/episodes/123-subdomains Eifion http://asciicasts.com Twitter: eifion On Wed, Feb 11, 2009 at 3:59 PM, Heinrich Beck wrote: > > This is more an architectural question > > I am looking to create a domain that sells widgets

[Rails] Re: newbie question

2009-01-13 Thread Eifion Bedford
Are you sure that you have the sqlite3 gem installed on your machine? Is it listed if you type 'gem list' at the command line? Eifion http://asciicasts.com On Mon, Jan 12, 2009 at 11:12 PM, technology wrote: > > I'm on OS X 10.5.6 and am trying to run the blog demo app at > http://guides.rub

[Rails] Re: is there a way in ./script/console to get the SQL debugging showing??? (i.e. like you see when you run ./script/server in development mode)

2008-12-11 Thread Eifion Bedford
You could always have two terminal windows open, one with script/ console open and another with script/server. Any db calls you make will appear in the script/server window. Eifion On 12 Dec 2008, at 07:10, Greg Hauptmann wrote: > is there a way in ./script/console to get the SQL debugging