Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

ifesdjeen's latest activity

Saturday, March 19 2011
6575 helper :all from ActionMailer was updated in Ruby on Rails
  • ifesdjeen
    ifesdjeen commented at 12:05 PM

    For some reason my code got all messy, please see it in that gist: https://gist.github.com/877432

  • ifesdjeen
    ifesdjeen commented at 12:04 PM

    :all is handled by overwritten helper (actionpack/lib/action_controller/metal/helpers.rb), which overwrites modules_for_helpers to

        def modules_for_helpers(...
6584 ActionMailer::Base has an undocumented public attribute, leading to confusion was updated in Ruby on Rails
  • ifesdjeen
    • Tag set to actionmailer
    by ifesdjeen at 10:44 AM

    It's not a direct part of ActionMailer::Base. It's more a part of MailHelper (actionmailer/lib/action_mailer/mail_helper.rb).

    It's an accessor to @_message inst...

6585 ActiveSupport::CoreExtensions::String::Inflections should coerce type was updated in Ruby on Rails
  • ifesdjeen
    ifesdjeen commented at 10:35 AM

    Not sure, why exactly that is raised.

    If it's String::Inflections, it seems to be clear enough that it should be called on string...

6587 layouts inheritance in controllers was updated in Ruby on Rails
  • ifesdjeen
    ifesdjeen commented at 10:33 AM

    You can use conditions for layouts, just give layouts a name of method to calculate current layout

    class ProjectsController < ApplicationController

    layout :get...
Wednesday, February 09 2011
6390 POST variables order was updated in Ruby on Rails
  • ifesdjeen
    ifesdjeen commented at 6:00 PM

    Please see a failing test.

    A bit more details:

    If you have a form, like:
    User => Blogs => Posts, and all of the fields should be dynamic, and you want to modify...

Tuesday, February 08 2011
6390 POST variables order was created in Ruby on Rails
  • ifesdjeen
    ifesdjeen created the ticket at 3:52 PM

    Hi,

    It seems that Rails and Rack reliy on the order of variables in POST/GET when parsing those.

    Sample is quite long, so i've put it in separate gist: https://...

Tuesday, August 31 2010
5510 Polymorphic routes, :as => "polymorphic_name" was updated in Ruby on Rails
  • ifesdjeen
    ifesdjeen commented at 2:05 PM

    BTW, Andrew, it does look at the application routes, moreover it matches all arguments you pass.
    Actually, what I was trying to implement, is also on top of Inh...

  • ifesdjeen
    ifesdjeen commented at 1:46 PM

    Thanks, Andrew, will try to do so

  • ifesdjeen
    ifesdjeen created the ticket at 10:13 AM

    Polymorphic routes problem:

    Given I have 2 models:
    1) User (has_many messages)
    2) Message (belongs_to user), which is polymorphic. It may be received_messages a...