[Rails] Re: IN URGENT NEED OF A RoR EXPERT FOR A MAJOR PROJECT

2011-11-04 Thread Srdjan Pejic
If you have an urgent need for an RoR expert, I don't think you're in the position to dictate location, :) Allow out-of-town/state/country people to apply and you might be able to find someone. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: Rails 3 Migration Guide Anywhere?

2010-06-10 Thread Srdjan Pejic
Also, there is this guide from Jeremy McAnally, http://www.railsupgradehandbook.com/ On Jun 10, 3:47 am, Owain owain.mcgu...@gmail.com wrote: Has anyone developed or come across on how to migrate to Rails 3 from prior releases.  I would like an idea of how much work it would be. O. -- You

[Rails] Re: Rating Model and DB Relationships

2009-04-16 Thread Srdjan Pejic
I don't know if STI is appropriate here. You should probably have a model called Rating which is the many side of one-to-many with the User model. The Rating model should be polymorphic so that you can use it to rate both Word and Quote objects. So, it would most likely look like this: class

[Rails] Re: Rating Model and DB Relationships

2009-04-16 Thread Srdjan Pejic
I don't know if STI is appropriate here. You should probably have a model called Rating which is the many side of one-to-many with the User model. The Rating model should be polymorphic so that you can use it to rate both Word and Quote objects. So, it would most likely look like this: class

[Rails] Re: Rating Model and DB Relationships

2009-04-16 Thread Srdjan Pejic
Those should be has_many... I'm not sure if I understand you here. You mean that Word and Quote should have more than one rating per instance? That's why I put them as has_one. On Apr 16, 10:53 am, Marnen Laibow-Koser rails-mailing-l...@andreas- s.net wrote: Srdjan Pejic wrote: I don't know

[Rails] Re: Rating Model and DB Relationships

2009-04-14 Thread Srdjan Pejic
To quickly answer your second question, you need both. The reason for that is that validates_uniqueness_of does not guarantee fully unique column values, since it's at the application level. The unique constraint in the db schema can be viewed as a backup. I'll answer your main question shortly.

[Rails] Re: Should I create foreign keys on my database?

2008-10-07 Thread Srdjan Pejic
This may be a bit off-topic, but I am of the opinion that you need a strong data model to effectively work in Rails. Therefore, anything that makes sense when creating a normal data model applies to the Rails one. I mean, you wouldn't leave off FK constraints if you were writing a Java or a .NET

[Rails] Re: what is Driver what is Adapter ?

2008-10-06 Thread Srdjan Pejic
I think that every adapter includes a driver. So a MySQL adapter for Rails includes driver information or utilizes a pre-existing driver for Ruby. The adapter then uses the raw data brought back from the database through an SQL statement that's been generated and makes an ActiveRecord object

[Rails] Re: How to track down never-ending requests

2008-09-12 Thread Srdjan Pejic
, then the timeouts are happening on the DB server or there's a communication problem between the app servers and the DB server. HTH On Sep 11, 5:05 pm, Jack Christensen [EMAIL PROTECTED] wrote: Srdjan Pejic wrote: Does it happen on a certain action or when accessing actions in a certain