[Rails] Re: starter question about paperclip / relations in rails 3

2011-07-29 Thread Daniel Amsterdam
s is done in the edit form > as asset_fields.object.asset.url(:thumb) (where asset_fields.object > represents the same Asset object as assetfield) > > Hope this helps. Good luck! > > > > > > > > On Thu, Jul 28, 2011 at 5:34 AM, Daniel Amsterdam wrote: > &g

[Rails] starter question about paperclip / relations in rails 3

2011-07-28 Thread Daniel Amsterdam
Hello, i'm trying out Rails 3 and i've created a little app with paperclip. My problem is that i cant get the assets for a user in the index action but in the edit action it works. i have the flowing set up class User has_many :assets class Asset belongs_to :user has_attached_file :asset,

[Rails] Re: Search and Filter application

2011-04-29 Thread Daniel Amsterdam
me/sunspot/wiki/Drilling-down-with-facets Thank you Matt On 28 apr, 17:16, Matt Jones wrote: > On Apr 27, 2:04 pm, Daniel Amsterdam wrote: > > > Hello all, > > > i'm starting a new application and as i'm quite new to rails i want to > > ask some advise t

[Rails] Search and Filter application

2011-04-27 Thread Daniel Amsterdam
Hello all, i'm starting a new application and as i'm quite new to rails i want to ask some advise to start this application. I'm planning to create an application with a search and filter function (like a "search for real estate" application) if the user selects an option i want to count the resu

[Rails] Re: setup Mysql / rails 3.0.3 Snow leopard 32bit

2011-01-09 Thread Daniel Amsterdam
Any ideas? Thank you very much! On 9 jan, 16:33, Frederick Cheung wrote: > On Jan 9, 2:15 pm, Daniel Amsterdam wrote: > > > Thx Frederick, > > > You where right about the syntax error in the database.yml... think i > > used tabs. So the scaffold command works now b

[Rails] Re: setup Mysql / rails 3.0.3 Snow leopard 32bit

2011-01-09 Thread Daniel Amsterdam
! On 9 jan, 15:05, Frederick Cheung wrote: > On Jan 9, 1:52 pm, Daniel Amsterdam wrote: > > > Hi everybody, > > > Can someone tell me how i can set up Rails 3.0.3 working with mysql on > > Snow Leopard 32bit? i've tried adding the gem 'mysql2' in my gem f

[Rails] setup Mysql / rails 3.0.3 Snow leopard 32bit

2011-01-09 Thread Daniel Amsterdam
Hi everybody, Can someone tell me how i can set up Rails 3.0.3 working with mysql on Snow Leopard 32bit? i've tried adding the gem 'mysql2' in my gem file and run 'bundle install' with the database.yml set to: development: adapter: mysql2 database: rails_mysql_database username: roo

[Rails] Re: MySQL setup question

2010-10-04 Thread Daniel Amsterdam
The socket is ok, i use the socket in php and it works. I didn't put the gem in the gem list (i didn't know i had to do that so thank you for that) but when i put the gem in the list i get the error: rake db:migrate (in /sites/mysqlapp) rake aborted! undefined method `init' for Mysql:Class The ge

[Rails] MySQL setup question

2010-10-02 Thread Daniel Amsterdam
Hello, I'm new to ror and i really like it so far! for a new application i would like to setup a ror application connecting to mysql but i can't figure it out how. rails works fine with sqllite out the box but i need it working with mysql. these are my versions: -OSX snow leopard -ruby 1.8.7 (200

[Rails] Re: Newbe question

2010-09-27 Thread Daniel Amsterdam
you stuck some whre. we will help you. > > On Mon, Sep 27, 2010 at 4:10 AM, Daniel Amsterdam wrote: > > > Hello everybody, > > > I'm new to ROR and i'm building a test "job board" project just to see > > how far i wil come with ruby. i'm al

[Rails] Newbe question

2010-09-26 Thread Daniel Amsterdam
Hello everybody, I'm new to ROR and i'm building a test "job board" project just to see how far i wil come with ruby. i'm already familiar with the MVC model (currently using Zend Framework) and RESTfull webservices and i'm very exited about rails. Everything works out fine with the "job board" a