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.

Joseph Chen's latest activity

Friday, May 15 2009
2448 Rails 2.3 JSON "put" request routing is broken was updated in Ruby on Rails
  • Joseph Chen
    Joseph Chen commented at 2:03 AM

    Zyclops, you are missing the '_method': 'put' in your jsonData. Your request should look like:

    url: '/publications/index',
    method: 'POST',
    jsonData: {
      'whate...
Saturday, May 02 2009
2448 Rails 2.3 JSON "put" request routing is broken was updated in Ruby on Rails
  • Joseph Chen
    Joseph Chen commented at 6:08 AM

    I found a bug with the fix I posted above. It turns out that the key 'action_controller.request.request_parameters' is not always present. So we need to check i...

  • Joseph Chen
    Joseph Chen commented at 5:46 AM

    I've stepped through the ActionController routing code and seem to have a fix for the problem.

    I've edited the gems/actionpack-2.3.2/lib/action_controller/routi...

Monday, April 27 2009
2448 Rails 2.3 JSON "put" request routing is broken was updated in Ruby on Rails
  • Joseph Chen
    Joseph Chen commented at 12:27 AM

    The post is being done in Ajax, and we happen to be using the ExtJS library for the Ajax request. As I have mentioned, you can reproduce this simply by doing a ...

Sunday, April 26 2009
2448 Rails 2.3 JSON "put" request routing is broken was updated in Ruby on Rails
  • Joseph Chen
    Joseph Chen commented at 5:58 PM

    Yes rake rails:update was run.

    The error is:

    "Only get, put, and delete requests are allowed."

    The stack:

    /Users/jc/.multiruby/install/1.8.7-p72/lib/ruby/gems/...

Tuesday, April 07 2009
2448 Rails 2.3 JSON "put" request routing is broken was created in Ruby on Rails
  • Joseph Chen
    Joseph Chen created the ticket at 10:47 PM

    In Rails 2.2, I can perform a request JSON put request by:

    1) Use method POST 2) Set Content-Type header to "application/json" 3) JSON-encode post data 4) Make ...

Tuesday, February 10 2009
1897 Rails 2.2 auto source code reloading broken when using config.threadsafe! was updated in Ruby on Rails
  • Joseph Chen
    Joseph Chen commented at 5:13 PM

    Thank you Hongli and DHH for the explanations.

    DHH - I agree with you that in general, running in thread-safe mode is more of a performance optimization, like c...

Monday, February 09 2009
1897 Rails 2.2 auto source code reloading broken when using config.threadsafe! was updated in Ruby on Rails
  • Joseph Chen
    Joseph Chen commented at 7:13 PM

    There are 2 separate issues here:

    1) Threadsafe development environment not supported:

    Why is threadsafe development environment not supported? Technically, it ...

Friday, February 06 2009
1897 Rails 2.2 auto source code reloading broken when using config.threadsafe! was created in Ruby on Rails
  • Joseph Chen
    Joseph Chen created the ticket at 5:25 PM

    If config.threadsafe! is added to config/environments/development.rb, then auto source code reloading stops working.

    I noticed that I would make a change to a v...