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.

There was a problem

You must be a member of this account.

fakingfantastic's latest activity

Thursday, August 05 2010
5262 Calling #method on new AR objects was updated in Ruby on Rails
  • fakingfantastic
    fakingfantastic commented at 7:06 PM

    "Rohit I think u.method can be used if the method is determined at runtime. It's prettier than using eval."

    Yeah, I'm pretty sure that was the reason it was s...

Saturday, July 31 2010
5262 Calling #method on new AR objects was updated in Ruby on Rails
  • fakingfantastic
    fakingfantastic commented at 3:22 PM
  • fakingfantastic
    fakingfantastic created the ticket at 3:22 PM

    (brought up by PointMan in #rubyonrails)

    With Ruby, we can use #method to do something like this:

    class Foo
      def hello
        put "hello"
      end
    end
    
    foo = Foo.ne...
Monday, June 21 2010
4924 "\xC2" from ASCII-8BIT to UTF-8 Internal Server Error was created in Ruby on Rails
  • fakingfantastic
    fakingfantastic created the ticket at 6:56 PM

    Real easy to make this one happen.

    • Boot a new Rails 3b4 app on 1.9.2
    • Make a static controller
    • in static#index, print out a helper function
    • make the helper meth...
Thursday, May 27 2010
4715 js() convenience method to alias escape_javascript was created in Ruby on Rails
  • fakingfantastic
    fakingfantastic created the ticket at 9:04 PM

    Many time when creating a *.js.erb file, I've got to type..

    <%= escape_javascript @something %>
    

    .. a whole bunch of times. I (and some others I've heard from ...

Sunday, May 16 2010
3971 polymorphic_path seems to be calling incorrect path method was updated in Ruby on Rails
  • fakingfantastic
    fakingfantastic commented at 8:14 PM

    -1

    Pretty sure this may have been cleaned up over the month, but i didn't get the result

    rails newapp
    rails g scaffold user name:string

    in routes.rb s/resources...

4606 undefined method `tap' for #<Rails::Server:0x15d8ea4> (NoMethodError) was updated in Ruby on Rails
  • fakingfantastic
    fakingfantastic commented at 1:24 AM

    Fixed, if you have this error, do...

    rvm use system
    rvn use 1.9.2-head
    

    switching out of the ruby version, then back into it clears up the issue.

Saturday, May 15 2010
4606 undefined method `tap' for #<Rails::Server:0x15d8ea4> (NoMethodError) was updated in Ruby on Rails
  • fakingfantastic
    fakingfantastic commented at 6:07 PM

    My bad, it was an oversight on my part. I updated the code accordingly.

  • fakingfantastic
    fakingfantastic created the ticket at 5:45 PM

    I'm on Mac 10.5

    Here are my steps.

    rvm install 1.9.2-head
    rvm use 1.9.2-head
    gem install rails --pre
    rails newapp
    updated my Gemfile to have:

     gem "rails", :gi...