[Rails] Group countries per continent

2010-04-26 Thread Vincent Bakker
Hi guys, I have a table that has a country column (:string). Now I need to group together all the countries that are in Europe. Any ideas on how I would approach this? (quickfix wise) Regards, Vincent -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subs

[Rails] Re: Fastes database server for...

2010-02-04 Thread Vincent Bakker
I recently heard about MongoDB, maybe Ill give that one a try. If I use the Mongo Wrapper does it work the same as if I where using a SQL or MYSQL database? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: T

[Rails] Fastes database server for...

2010-02-04 Thread Vincent Bakker
Hi, I'm currently building a small rails application that needs to store web traffic information. Similar to google analytics and clicky. (but simpler) It needs to store refer domains and visitors. Integration goes through a small javascript snippet. My question is: What database server is the fa

[Rails] Liquid assign_to

2009-09-15 Thread Vincent Bakker
Hello using liquid markup i am trying to do the following. {{ 'holiday' | album_thumbs | assign_to 'asset_list' }} {% for asset in asset_list %} "link: " + {{ asset | asset_path }} {% endfor %} It should return a list with all assets for the loop, but the asset_list variable never gets set.

[Rails] Re: Advanced Search In Ruby on Rails.

2009-03-03 Thread Vincent Bakker
Could you paste in some of your code? What example are you using? Khim Sreang wrote: > Hi all, >I am doing with ruby on rail, now i am having a problem with advanced > search by using multiple checkboxs and multiple radio.when i submited, > it doesn't show the result.so i hope all of you will

[Rails] Re: RoR for dummies .. from nothing to knowlege

2009-03-03 Thread Vincent Bakker
Simone R. wrote: > Vincent Bakker wrote: >> You can find all the needed code snippets in Advanced Rails Recipes. I >> would recommend using this book for pointers and code snippets. >> >> http://railsbookclub.com/advanced-rails-recipes >> >> (zippin

[Rails] Re: Give own domains to users (shopify like)

2009-03-03 Thread Vincent Bakker
you don't need a entire plugin for this. I use the recipe from Advanced Rails Recipes (http://railsbookclub.com/advanced-rails-recipes) It ads an extra column to your account model and uses a simple before filter to match the account to the subdomain. -- Posted via http://www.ruby-forum.com/

[Rails] Re: RoR for dummies .. from nothing to knowlege

2009-03-03 Thread Vincent Bakker
You can find all the needed code snippets in Advanced Rails Recipes. I would recommend using this book for pointers and code snippets. http://railsbookclub.com/advanced-rails-recipes (zipping up and generating files, login system through acts_as_authenticated, manipulating files) Simone R. w

[Rails] Re: How cna I pop-up a dialog in a controller

2009-01-21 Thread Vincent Bakker
You need to render the javascript call as an output. You can't call it inside the controller directly. try this in your controller: render :update do |page| page << "alert('hello world');" end Regards, Vincent vunkyblog.net -- Posted via http://www.ruby-forum.com/. --~--~-~--~~