[Rails] Re: Action working with webrick, not with apache+fcgi

2009-03-19 Thread Tranquiliste
Hello, Just for your information, I have found the issue. The problem came from the fact that I had left a "puts" in my code and apparently writting on the console with mod_fcgi makes the application fail Nicolas --~--~-~--~~~---~--~~ You received this message bec

[Rails] Re: Does anybody have simple example of Tiny_MCE working?

2009-03-14 Thread Tranquiliste
Hello, I use tiny_mce without any plugin. You have a very clear explanation on how to doit here : http://www.ricroberts.com/articles/2008/06/16/tinymce-wysiwyg-text-editor-on-rails Hope this can help Nicols --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: Action working with webrick, not with apache+fcgi

2009-03-12 Thread Tranquiliste
Hello, Sorry to be insistant but I am stuck with this problem and I don't know how to move forward. Nicolas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send e

[Rails] Action working with webrick, not with apache+fcgi

2009-03-11 Thread Tranquiliste
Hello, I have a stange problem that I don't know how to solve. My application is deployed and configured to use Apache and Fastcgi (I use a hosting company). It works ok except for some redirect where apparently the wrong route is used. I have tried on the same environment with webrick (with th

[Rails] Re: date filter

2009-01-19 Thread Tranquiliste
Hello You could use named_scope (starting with rails 2.1). There is a good rails cast presenting them with an example with dates : http://railscasts.com/episodes/108-named-scope --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[Rails] Re: Action working in local, not working once deployed

2009-01-19 Thread Tranquiliste
More information In my original view I had : <% form_for :building, :url => buildings_path do |f| -%> # The create action worked well locally but not on the server I tested with : <% form_for :building, :url => {:action => 'create', :controller => 'buildings'} do |f| -%> # I had stil the sam

[Rails] Re: Action working in local, not working once deployed

2009-01-19 Thread Tranquiliste
Hello, this is very strange if in my view I replace the 'create' action by another name, it works (i have also modified the controller with the same action name of course) !!! <% form_for :building, :url => {:action => 'created', :controller => 'buildings'} do |f| -%> --~--~-~--~~-

[Rails] Re: will_paginate help

2009-01-19 Thread Tranquiliste
Sorry I was too quick something like Object.find(:all, :limit => 100).paginate(:page => params[:page], :per_page => 10) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this

[Rails] Re: will_paginate help

2009-01-19 Thread Tranquiliste
You can use the parameter :per_page => 10 and in your search add a :limit => 100 On Jan 19, 8:41 pm, James Bond wrote: > Can I limit results in will_paginate plugin? > I want to paginate only 100 results 10 per page. > -- > Posted viahttp://www.ruby-forum.com/. --~--~-~--~~

[Rails] Action working in local, not working once deployed

2009-01-19 Thread Tranquiliste
Hello I have a form (new/create) which works well in local, but not when deployed where it keeps being redirected to the index action when I submit. Here is what I have done so far : - de-Ajaxified the form to be pure HTML - put a logger.info on the first line of the create action and realised I

[Rails] Attachment_fu stores the wrong size

2008-09-07 Thread Tranquiliste
hello, I am testing attachment_fu to load and store images. I am resizing them and generating a thumbnail but apparently it saves the wrong size in the DB : - the image has the original size - the thumbnail has the size of the resized size I am using Rmagick 2.5.2, Rails 2.0.2 on a Mac with X.5