[Rails] Changing the plugin load path from a plugin-init.rb

2010-03-05 Thread neomizer
Hi, I'm in the middle of converting one of my Rails-Apps to a plugin/ engine. Because this new plugin requires a lot of plugins I moved them to RAILS_ROOT/vender/plugins/my_plugin/plugins and added config.plugin_paths += %W( #{RAILS_ROOT}/vendor/plugins/my_plugin/ plugins ) to my

[Rails] Native sql query with array-like, prepared statement

2009-10-30 Thread neomizer
Hi, I'm using in my project ActiveRecord::Base.connection.select_value and ActiveRecord::Base.connection.select_rows several times to execute complex queries. This basically works, but I need to check the params in order to avoid sql-injection by myself. Even worse I've to handle basic datatype

[Rails] Re: Native sql query with array-like, prepared statement

2009-10-30 Thread neomizer
On 30 Okt., 15:00, Gregory Mazurek gregory.mazu...@gmail.com wrote: On Fri, Oct 30, 2009 at 3:57 AM, neomizer hthpsy...@gmx.de wrote: Hi, I'm using in my project ActiveRecord::Base.connection.select_value and ActiveRecord::Base.connection.select_rows several times to execute complex

[Rails] Re: Native sql query with array-like, prepared statement

2009-10-30 Thread neomizer
On 30 Okt., 17:34, Gregory Mazurek gregory.mazu...@gmail.com wrote: On Fri, Oct 30, 2009 at 12:10 PM, neomizer hthpsy...@gmx.de wrote: On 30 Okt., 15:00, Gregory Mazurek gregory.mazu...@gmail.com wrote: On Fri, Oct 30, 2009 at 3:57 AM, neomizer hthpsy...@gmx.de wrote: Hi, I'm

[Rails] Re: Excessive Invalid Authenticity Token Errors

2009-01-01 Thread neomizer
Hi! i've got the same (or similar i'm not totally sure) error some time ago. In my case the reason was a stupid usage of caching. I used a partial-cache around a link_to-helper which used an authenticity- token. This token gets outdated after a few hours (or days)... On Jan 1, 7:30 am, Mikel