[Rails] Re: [SEC][ANN] Rails 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been released!

2013-01-10 Thread Henrik Ormåsen
How about 2.2? I'm using yaml, but not xml. How can I fix it? On Tuesday, January 8, 2013 9:20:48 PM UTC+1, Aaron Patterson wrote: Hi everybody. I'd like to announce that 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been released. These releases contain two **extremely critical security

[Rails] Coffeebeans - smart to use?

2011-05-28 Thread Henrik
Not sure if inline coffeescript is smart. Has just learned why inline javascript not is smart, so I don't understand why it now should be a good thing with coffeescript. On the other hand: I find the ability to use it when responding to JavaScript (JS) requests very nice, so I wonder why this is

[Rails] Error on ajax forms/links in jQuery UI tabs

2011-03-22 Thread Henrik
I've implemented jQuery UI tabs, and I get an error: When i submit a ajax form or link, it gets submitted multiple times. As seen in this Doom console output: DELETE http://localhost:3000/innmeldings/101 404 (Not Found) DELETE http://localhost:3000/innmeldings/101 404 (Not Found) DELETE

[Rails] Help on Rails3: html_safe don't unescape

2010-10-11 Thread Henrik
I'm upgrading my CMS app to rails 3, but some parts just don't get unescaped :-(: From application.html.erb: % for article in topplinker % % nr = nr + 1 -% %= text2html(article.ingress, article.cloth).html_safe % # - Here it is! % if

[Rails] Model-problem

2009-10-20 Thread Henrik Solberg
Hello. I have a simple multipart-form that uploads images and saves record in the database. I have a model that uses the RMagick plugin to save the images. My model looks like this: class Drawing ActiveRecord::Base has_attachment :storage = :file_system, :resize_to =

[Rails] Taxonomization with dynamic taxon types

2009-06-10 Thread Henrik Hodne
- has_many :taxons, :through = :taxonomizations Do you think this sounds like the best way to do it? Or is there a good plugin that can do this for me? Thanks, Henrik Hodne --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Upgrading 2.2 to 2.3: console broken, uninitialized constant Module::ActiveSupport

2009-03-22 Thread Henrik N
Upgrading a Rails app from 2.2 to 2.3.2 (via 2.3.0). Got things working in the browser, but script/console seems messed up in both 2.3.0 and 2.3.2: $ script/console Loading development environment (Rails 2.3.2) /Library/Ruby/Gems/1.8/gems/rails-2.3.2/lib/initializer.rb:56:in `env':NameError:

[Rails] Re: Upgrading 2.2 to 2.3: console broken, uninitialized constant Module::ActiveSupport

2009-03-22 Thread Henrik N
On Mar 22, 12:14 pm, Henrik N hen...@nyh.se wrote: Upgrading a Rails app from 2.2 to 2.3.2 (via 2.3.0). Got things working in the browser, but script/console seems messed up in both 2.3.0 and 2.3.2: $ script/console Loading development environment (Rails 2.3.2) /Library/Ruby/Gems/1.8/gems

[Rails] Re: Weird params from Safari/525.20 on 10.5.3, {user=foo=xbar=y}, {ids = {0=123, 1=456}

2008-11-19 Thread Henrik N
On Nov 17, 4:41 pm, Henrik N [EMAIL PROTECTED] wrote: I've seen a bunch of logged exceptions the last few months, where Rails expects arrayparamslike { ids = [123, 456] } but gets { ids = { 0 = 123, 1 = 456] } or expects hashparamslike { user = { foo = x, bar = y } } but gets {user = foo

[Rails] Weird params from Safari/525.20 on 10.5.3, {user=foo=xbar=y}, {ids = {0=123, 1=456}

2008-11-17 Thread Henrik N
I've seen a bunch of logged exceptions the last few months, where Rails expects array params like { ids = [123, 456] } but gets { ids = { 0 = 123, 1 = 456] } or expects hash params like { user = { foo = x, bar = y } } but gets {user = foo=xbar=y } So what was supposed to be an array (from

[Rails] Re: Weird params from Safari/525.20 on 10.5.3, {user=foo=xbar=y}, {ids = {0=123, 1=456}

2008-11-17 Thread Henrik Nyh
On Mon, Nov 17, 2008 at 4:41 PM, Henrik N [EMAIL PROTECTED] wrote: I've seen a bunch of logged exceptions the last few months, where Rails expects array params like { ids = [123, 456] } but gets { ids = { 0 = 123, 1 = 456] } or expects hash params like { user = { foo = x, bar = y

[Rails] Re: ActionMailer cancel send from one of deliver_* methods

2008-11-05 Thread Henrik ---
surge wrote: Seems like executing a return in one of the deliver_* methods of ActionMailer doesn't cancel the delivery. The template is still read right after the return method has been executed and because all variables in the template are empty, all kinds of errors occur. I need to

[Rails] Re: Rails 2.2: ActiveRecord in thread doesn't run if action has completed

2008-10-25 Thread Henrik N
On Oct 25, 1:08 am, Henrik N [EMAIL PROTECTED] wrote: So basically, it seems that a thread in a controller action can run after the action completes, but ActiveRecord can't. Is this an inherent limitation? Can I configure my way around it? I was hoping 2.2 connection pools would mean

[Rails] Re: Rails 2.2: ActiveRecord in thread doesn't run if action has completed

2008-10-25 Thread Henrik N
On Oct 25, 9:19 am, Henrik N [EMAIL PROTECTED] wrote: Aha! Changing   config.cache_classes = true to   config.cache_classes = false in config/environments/development.rb fixed this. Oops. The other way around, of course. Changing from false to true

[Rails] Re: Verify that an email is sent?

2008-10-25 Thread Henrik N
On Oct 24, 11:58 pm, Joshua Muheim [EMAIL PROTECTED] wrote: I'm trying to get my actionmailer to work. How can I debug this stuff? Is there something I have to set on my email server? Make sure you have config.action_mailer.raise_delivery_errors = true in

[Rails] Rails 2.2: ActiveRecord in thread doesn't run if action has completed

2008-10-24 Thread Henrik N
I have some callback code that submits data over the net, gets an id back and should write it to DB. This takes a few seconds. I want to run it asynchronously, without slowing down the request/response cycle. I would like to avoid a worker/queue system if possible, to keep things simple. I