Re: [Rails] Rails Hosting

2009-12-13 Thread Borja Martín
I would suggest you to check for a vps like slicehost, linode or rackspace instead of a shared hosting Regards On Sun, Dec 13, 2009 at 5:17 PM, Craig White craigwh...@azapple.com wrote: Getting ready to start a new commercial web site and looking at web hosting with Rails and EngineYard is

Re: [Rails] pdf generation

2009-12-04 Thread Borja Martín
Hi, I wrote a plugin to generate pdfs using a view: http://github.com/dagi3d/acts_as_flying_saucer the problem is that you will need java to run it there are other alternatives like http://github.com/lleirborras/render_as_pdf (you will need php) and http://github.com/lleirborras/wicked_pdf wich

[Rails] Re: In IE there is delay in loading png images

2009-08-20 Thread Borja Martín
maybe you have a javascript or stylesheet that is calling the htc file(proably to fix the transparency issue on ie6) regards On Thu, Aug 20, 2009 at 11:16 AM, Shanmu Gam rails-mailing-l...@andreas-s.net wrote: Hi all, Can some one help me in this issue. My application consists only png

[Rails] Re: rubyonrails.org is down?

2009-04-23 Thread Borja Martín
just type 'gem install rails' regards On Thu, Apr 23, 2009 at 11:33 AM, chioh wch...@gmail.com wrote: Hi guys, Anyone know of a mirror site or site where I can download rails? Many thanks ... chioh On Apr 23, 5:21 pm, Mukund marut...@yahoo.com wrote: http://www.railsbrain.com/has

[Rails] Re: adzap-AR_Mailer sending email error

2009-03-09 Thread Borja Martín
I guess you have installed Ruby 1.8.7 if so, install 1.8.6 and try it again Regards On Mon, Mar 9, 2009 at 8:03 PM, Sean McGilvray smcgilv...@gmail.com wrote: I am getting the following error when I try to send an email using the ar_mailer: Unhandled exception wrong number of arguments (7

[Rails] Re: passing objects to methods

2009-02-26 Thread Borja Martín
storing whole objects in session isn't usually a good recommendation... the best solution would probably be to pass just the object's id and then retrieve it from the database/wherever in your requested action another approach could be to serialize the object and deserialize it at the server.

[Rails] Re: passing objects to methods

2009-02-26 Thread Borja Martín
variables in another method. By the way, even when I stored a whole object in the session, I could print its contents in the same method where I stored it. any ideas :( Borja Martín wrote: storing whole objects in session isn't usually a good recommendation... the best solution would probably

[Rails] Re: AR_Mailer Problem

2009-02-14 Thread Borja Martín
which ruby version are you using? I think I had a similar problem using ruby 1.8.7 and solving it by downgrading to 1.8.6... On Fri, Feb 13, 2009 at 5:23 PM, Sean McGilvray smcgilv...@gmail.com wrote: Hi all, I am using ar_mailer for sending newsletter. I got mails queued in emails table.

[Rails] Re: ar_mailer and missing template in production environment

2009-02-03 Thread Borja Martín
.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 04/02/2009, at 9:48 AM, Borja Martín bor...@dagi3d.net wrote: Hi, I'm trying to use ar_mailer to send newsletters in my application. The thing is that what I've done works fine while I'm under development mode but when I try

[Rails] ar_mailer and missing template in production environment

2009-02-03 Thread Borja Martín
Hi, I'm trying to use ar_mailer to send newsletters in my application. The thing is that what I've done works fine while I'm under development mode but when I try to run it in my server in production mode I become the following error(it also appears after switching webrick to run in

[Rails] retrieve resource name from request

2008-11-25 Thread Borja Martín
Hi, I was wondering if there is any way for retrieving the resource name from the request. Suppose I have the following resource definition in my routes.rb file: map.resources :pages, :controller = 'documents' now, when the url /pages/ is requested with the GET method, the method 'index' in

[Rails] Re: Easiest RoR - PDF solution (based on HTML and CSS)

2008-10-31 Thread Borja Martín
If you don't mind using java, you can use the flying saucer library in an external application and call it inside your application. I wrote a post about this a long time ago. The problem it's in spanish but I think you can get the idea:

[Rails] Re: HTML from view into controller

2008-10-24 Thread Borja Martín
You can try the render_to_string method: http://api.rubyonrails.com/classes/ActionController/Base.html#M000475 Regards GA Gorter escribió: How can i get the html code create by a view into the controller I need to save the html created into a view into a file something like File.open(

[Rails] Re: rails and security

2008-10-16 Thread Borja Martín
http://weblog.rubyonrails.org/2006/8/21/filtered-parameter-logging Regards MR Damien escribió: Hi, I am wondering if there is a way to secure rails application logs ? My issue is that I discovered that form parameters are shown in clear in the logs. So when users are authenticating, you

[Rails] Re: Session lost with IE7 but not FF... 8 hours hit head/wall

2008-09-30 Thread Borja Martín
Hope this link helps you: http://szeryf.wordpress.com/2008/01/21/cookie-handling-in-multi-domain-applications-in-ruby-on-rails/ Regards Peter Alvin escribió: Our production site works great on IE7/FF but SAME code on test server fails for IE7...works great with FireFox. We've spent 8 hours

[Rails] Re: Mongrel cluster and threads

2008-09-18 Thread Borja Martín
Maybe you could call the webservice as a background process so you don't have to care about how long does it take to run: http://backgroundrb.rubyforge.org/ Regards Roberto Druetto escribió: Hi guys, I'm running 6 instances of mongrel in a production environment and I have this