Re: [Rails] a hands-on tutoring needed

2012-07-02 Thread Gregory Bataille
Did you watch this one http://railscasts.com/episodes/111-advanced-search-form for a search without plugins, I think it covers well the basics of the subject to let you improve it. this is the "advanced search form" episode. If you were to find yourself a bit lost, there is a "simple search form

[Rails] Re: Want to make existing column unique in multiple tables

2012-06-27 Thread Gregory Bataille
There is no super quick way to do that. Are you looking to do it just for your migration, or to keep this behavior in the future. What I would do is use a fifth table that contains the next value for the incremental counter. Every time you need one or several IDs, you do use a stored proc to get