[Rails] Re: Writing Multi-Tenant Applications in Rails

2009-03-02 Thread Jean-Marc (M2i3.com)
Interesting but knowing that Ruby 1.9 will be better on the multi- thread portion and knowing that Rails 2.3 is designed to work multi- threaded I'd be nervous in putting my project into the hand of a solution that will not work under those circonstances... The Rails groups improved the

[Rails] Re: advise request: plugin routes with version prefix

2009-02-27 Thread Jean-Marc (M2i3.com)
Hi Raphaël, Changing the version of an API is never just about the version, the implications are more often than not pretty deep. My take on your case would be to publish your application as the version itself, not clouding each version with overly complex code to handle version specific code

[Rails] Re: using a controller method in model

2009-02-24 Thread Jean-Marc (M2i3.com)
Hi FMH, seems you are looking to have a special case of a user (a user who is an admin) look at this pattern from Martin Fowler and see if it applies... http://martinfowler.com/eaaCatalog/specialCase.html I got to say that within MVC, the Controller should not interfere with the Model as

[Rails] Re: Multiple versions of a site (different languages)

2009-01-29 Thread Jean-Marc (M2i3.com)
Hi Bingo Bob, from a browsers perspective you'Re better off not showing a page where people pick the language... they made that decision a while ago when they bought their machine, OS and webbrowser. what you want to do it use the HTTP Headers you can get which language the users perfer to have

[Rails] Re: site content blocks

2009-01-28 Thread Jean-Marc (M2i3.com)
How about creating a model (and a table) called contact information You're code will be a lot cleaner and meaningfull. usually compagnies have multiple contacts they like to make visible, having a model for such purpose should provide good starting point and allow for expension (like one

[Rails] Re: about copyright position

2008-12-19 Thread Jean-Marc (M2i3.com)
I'm afraid you are in the wrong group for your question... I'd try something geared toward CSS more than Ruby on Rails since your problem is really about CSS... Jean-Marc http://m2i3.com On Dec 19, 3:35 am, daociyiyou chey...@yahoo.com.cn wrote: please help me ,thank you On Dec 19, 2:07 

[Rails] Re: paperclip

2008-12-19 Thread Jean-Marc (M2i3.com)
Or you could try Ryan Bates screencast http://railscasts.com/episodes/134-paperclip Jean-Marc http://m2i3.com On Dec 19, 12:23 am, Johny Johndoe rails-mailing-l...@andreas-s.net wrote: anyone can help me to use paperclip plugins..I have a problem using it. -- Posted

[Rails] Re: Database password encryption

2008-11-27 Thread Jean-Marc (M2i3.com)
Funny this would end up on a discussion on Rails. We have clients on other products asking to encrypt the passwords and encrypt this and that (funny also they are gov. bodies too). The explanation about securing the server and restricting access to the file did not resolve the question. What

[Rails] Re: Runt Recurring events

2008-11-25 Thread Jean-Marc (M2i3.com)
hi David, every other week has to have a starting point to be possible to calculate. On Nov 10, 8:33 pm, David [EMAIL PROTECTED] wrote: I guess my question can be summed up as: can you create a recurring event for every other week using the Runt class? On Nov 10, 3:20 pm, David [EMAIL

[Rails] Re: Runt Recurring events

2008-11-25 Thread Jean-Marc (M2i3.com)
ok basing myself on what I could see on http://www.slideshare.net/cglee/gem-and-i-runt-presentation/ here's what I would do Runt::EveryTE.new(Time.now,2,Runt::DPrecision.Precision.week) which would be every two weeks starting today. Jean-Marc http://m2i3.com On Nov 10, 8:33 pm, David

[Rails] Re: Searching multiple tables

2008-11-18 Thread Jean-Marc (M2i3.com)
Hi Jables, There are no magic solution for what you're trying to do. What you can do is search each model and use a 4th model as the search result using that search result model to paginate and display your page. This way you should be able to sort in different fashion as made the query

[Rails] Re: connection refused

2008-11-13 Thread Jean-Marc (M2i3.com)
Hi xxmithila, have you checked the firewall setting on the machine you are trying to connect to? Jean-Marc On Nov 12, 10:48 am, xxmithila [EMAIL PROTECTED] wrote: what is the reason for this error. this return when try to direct web page. No connection could be made because the target

[Rails] Re: html lists vs html tables

2008-11-04 Thread Jean-Marc (M2i3.com)
Garett, Table for layout are generally considered bad but for data when data is tabular you SHOULD be using a table. Using divs, lists or other markup will only cloud the actual meaning of the information you're presenting and depending on the browser the visitor is using you could very well

[Rails] Re: images folder concern when deploying with Capistrano and

2008-11-04 Thread Jean-Marc (M2i3.com)
Hi Tony, Look into Ryan Bates Railscasts... there is one talking about Capistrano (and his tricks when dealing with images and other site specific data). http://railscasts.com/episodes/133-capistrano-tasks Jean-Marc http://m2i3.com/blog/jean-marc

[Rails] Re: html lists vs html tables

2008-11-04 Thread Jean-Marc (M2i3.com)
, Jean-Marc (M2i3.com) [EMAIL PROTECTED] wrote: Garett, Table for layout are generally considered bad but for data when data is tabular you SHOULD be using a table. Using divs, lists or other markup will only cloud the actual meaning of the information you're presenting and depending

[Rails] Re: TeachMate.org goes opensource

2008-10-28 Thread Jean-Marc (M2i3.com)
I think you should find another term than OpenSource since the website itself is OpenSource... Its like an OpenWebsite Jean-Marc http://m2i3.com/blog/jean-marc On Oct 27, 4:54 am, snitko [EMAIL PROTECTED] wrote: http://teachmate.orghttp://github.com/snitko/teachmate/tree/master

[Rails] Re: TeachMate.org goes opensource

2008-10-28 Thread Jean-Marc (M2i3.com)
Aaron, Your last comment would seem to weight in the need to have a new term to describe what snitko wants to do. -- Jean-Marc http://m2i3.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: Liquid_markup for rails

2008-10-22 Thread Jean-Marc (M2i3.com)
Hi Thushar, The plugin has a very simple use... think of it has your layout/ application.html.erb in a different syntax with control over the model and object it can accesses. It was designed to allow the store owner to customize their store look and feel on Shopify.com. The goal was to give

[Rails] Re: Importing / Parsing Large Excel Files ?

2008-10-21 Thread Jean-Marc (M2i3.com)
Actually being on Linux does not prevent WIN2OLE and DBI if you use WINE You still need to install all the supporting software (in this case Excel). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Moving from mod_proxy_balancer to HAProxy; any guidance?

2008-10-21 Thread Jean-Marc (M2i3.com)
Hi Chris, if you're looking to load balance multiple mongrels on a single machine I'd go with Passenger (http://www.modrails.com/) directly under apache... not only it will mange the multiple instances of mongrel (start and stop them when needed) but it also serves the static files directly

[Rails] Re: Where to place the session variable to access it in mode

2008-10-21 Thread Jean-Marc (M2i3.com)
But Sijo needs is justified when tracing who is doing something to your model. Sijo, look into this screencast from Ryan Bates (http://railscasts.com/ episodes/119-session-based-model). It provides with good leads for a solution on what your looking. In short what you want to provide your