<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8034707056574245617.post2393311157429657744..comments</id><updated>2010-01-03T15:19:47.276-05:00</updated><title type='text'>Comments on Ext JS with Rails: More Rails 2.1 changes that target JSON and theref...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.extjswithrails.com/feeds/2393311157429657744/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default'/><link rel='alternate' type='text/html' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html'/><author><name>Steffen Hiller</name><uri>http://www.blogger.com/profile/04810135337219418093</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8034707056574245617.post-602158101559491809</id><published>2008-07-11T09:12:00.000-04:00</published><updated>2008-07-11T09:12:00.000-04:00</updated><title type='text'>Thank you very much~You are so niceI add GET then ...</title><summary type='text'>Thank you very much~&lt;BR/&gt;You are so nice&lt;BR/&gt;I add GET then get it！&lt;BR/&gt;Thank u</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/602158101559491809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/602158101559491809'/><link rel='alternate' type='text/html' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html?showComment=1215781920000#c602158101559491809' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html' ref='tag:blogger.com,1999:blog-8034707056574245617.post-2393311157429657744' source='http://www.blogger.com/feeds/8034707056574245617/posts/default/2393311157429657744' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8034707056574245617.post-5840194420627292150</id><published>2008-06-24T18:48:00.000-04:00</published><updated>2008-06-24T18:48:00.000-04:00</updated><title type='text'>NY, well, you should look in your railsapp/log/pro...</title><summary type='text'>NY, well, you should look in your railsapp/log/production.log file.&lt;BR/&gt;It should say something like ActionController::RoutingError (No route matches "/get_nodes.json" with {:method=&gt;:post}):&lt;BR/&gt;Well, the best solution would be to try TreeLoader({dataUrl : 'get_nodes.json', requestMethod : 'GET'}).&lt;BR/&gt;Note that the requestMethod will be GET.&lt;BR/&gt;I think that should help,&lt;BR/&gt;Steffen</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/5840194420627292150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/5840194420627292150'/><link rel='alternate' type='text/html' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html?showComment=1214347680000#c5840194420627292150' title=''/><author><name>Steffen Hiller</name><uri>http://www.blogger.com/profile/04810135337219418093</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='13877413348971913896'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html' ref='tag:blogger.com,1999:blog-8034707056574245617.post-2393311157429657744' source='http://www.blogger.com/feeds/8034707056574245617/posts/default/2393311157429657744' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8034707056574245617.post-7625795837199231616</id><published>2008-06-24T08:36:00.000-04:00</published><updated>2008-06-24T08:36:00.000-04:00</updated><title type='text'>In console of my local webrick"POST /get_nodes.jso...</title><summary type='text'>In console of my local webrick&lt;BR/&gt;"POST /get_nodes.json HTTP/1.1" 404 622&lt;BR/&gt;&lt;BR/&gt;http://localhost:3000/main.html -&gt; /get_nodes.json&lt;BR/&gt;&lt;BR/&gt;And when I upload my project to a free host (in firebug console,it's nginx) and get 405&lt;BR/&gt;&lt;BR/&gt;I put all html,javascriprt and json files in the rails public folder,is it wrong?&lt;BR/&gt;&lt;BR/&gt;Can you give me a example by use treeLoader with Rails?&lt;BR/&gt;I need </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/7625795837199231616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/7625795837199231616'/><link rel='alternate' type='text/html' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html?showComment=1214310960000#c7625795837199231616' title=''/><author><name>NY</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html' ref='tag:blogger.com,1999:blog-8034707056574245617.post-2393311157429657744' source='http://www.blogger.com/feeds/8034707056574245617/posts/default/2393311157429657744' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8034707056574245617.post-1992511847029586617</id><published>2008-06-23T22:51:00.000-04:00</published><updated>2008-06-23T22:51:00.000-04:00</updated><title type='text'>NY, look in your console where you opened the webr...</title><summary type='text'>NY, look in your console where you opened the webrick from, it should tail your development log and which should tell you a more specific error message than just error 405...&lt;BR/&gt;I hope that helps,&lt;BR/&gt;Steffen</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/1992511847029586617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/1992511847029586617'/><link rel='alternate' type='text/html' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html?showComment=1214275860000#c1992511847029586617' title=''/><author><name>Steffen Hiller</name><uri>http://www.blogger.com/profile/04810135337219418093</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='13877413348971913896'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html' ref='tag:blogger.com,1999:blog-8034707056574245617.post-2393311157429657744' source='http://www.blogger.com/feeds/8034707056574245617/posts/default/2393311157429657744' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8034707056574245617.post-2225803757689338935</id><published>2008-06-23T21:23:00.000-04:00</published><updated>2008-06-23T21:23:00.000-04:00</updated><title type='text'>Good article!Now I start a project by Rails2.1 &amp; E...</title><summary type='text'>Good article!&lt;BR/&gt;Now I start a project by Rails2.1 &amp; Extjs2.1&lt;BR/&gt;But I have a problem.&lt;BR/&gt;I want to load a static JSON file&lt;BR/&gt;such as "tree.json"&lt;BR/&gt;&lt;BR/&gt;TreeLoader({dataUrl : 'get_nodes.json'})&lt;BR/&gt;&lt;BR/&gt;It can work with PHP and by set MIME it also can work with ASP&lt;BR/&gt;But by use webrick, have a http 405 error. &lt;BR/&gt;How can I do it with Rails?&lt;BR/&gt;&lt;BR/&gt;Thanks</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/2225803757689338935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/2225803757689338935'/><link rel='alternate' type='text/html' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html?showComment=1214270580000#c2225803757689338935' title=''/><author><name>NY</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html' ref='tag:blogger.com,1999:blog-8034707056574245617.post-2393311157429657744' source='http://www.blogger.com/feeds/8034707056574245617/posts/default/2393311157429657744' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8034707056574245617.post-1626501488526996147</id><published>2008-06-18T12:48:00.000-04:00</published><updated>2008-06-18T12:48:00.000-04:00</updated><title type='text'>Hey kain,you're right, my last comment was a littl...</title><summary type='text'>Hey kain,&lt;BR/&gt;you're right, my last comment was a little confusing and Rails 2.1 really turns the new "root feature" on by default IF you create a new rails app. I didn't create a new rails app with "rails appname". I only updated an existing rails app. That's why I didn't have the new_rails_defaults.rb file which sets the root feature to true and is only created when you run the "rails appname" </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/1626501488526996147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/1626501488526996147'/><link rel='alternate' type='text/html' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html?showComment=1213807680000#c1626501488526996147' title=''/><author><name>Steffen Hiller</name><uri>http://www.blogger.com/profile/04810135337219418093</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='13877413348971913896'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html' ref='tag:blogger.com,1999:blog-8034707056574245617.post-2393311157429657744' source='http://www.blogger.com/feeds/8034707056574245617/posts/default/2393311157429657744' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8034707056574245617.post-8434736239294134126</id><published>2008-06-18T12:05:00.000-04:00</published><updated>2008-06-18T12:05:00.000-04:00</updated><title type='text'>mm.. I think I got it, set new options to false AN...</title><summary type='text'>mm.. I think I got it, set new options to false AND customize render :json options :)</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/8434736239294134126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/8434736239294134126'/><link rel='alternate' type='text/html' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html?showComment=1213805100000#c8434736239294134126' title=''/><author><name>kain</name><uri>http://www.blogger.com/profile/15454360235074324512</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html' ref='tag:blogger.com,1999:blog-8034707056574245617.post-2393311157429657744' source='http://www.blogger.com/feeds/8034707056574245617/posts/default/2393311157429657744' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8034707056574245617.post-1730264039631379781</id><published>2008-06-18T11:09:00.000-04:00</published><updated>2008-06-18T11:09:00.000-04:00</updated><title type='text'>hi Steffen,it's strange, I found out that creating...</title><summary type='text'>hi Steffen,&lt;BR/&gt;it's strange, I found out that creating a new 2.1 rails app uses the new defaults to true (check initializers/new_rails_defaults.rb) and must be turned off to false.&lt;BR/&gt;&lt;BR/&gt;at this point I had to manually modify the way json data is returned by default (with settings to false) and create a new mimetype (just ext scaffold plugin does) to work with ext grids.&lt;BR/&gt;&lt;BR/&gt;I'm still a </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/1730264039631379781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/1730264039631379781'/><link rel='alternate' type='text/html' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html?showComment=1213801740000#c1730264039631379781' title=''/><author><name>kain</name><uri>http://www.blogger.com/profile/15454360235074324512</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html' ref='tag:blogger.com,1999:blog-8034707056574245617.post-2393311157429657744' source='http://www.blogger.com/feeds/8034707056574245617/posts/default/2393311157429657744' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8034707056574245617.post-1217183519507701242</id><published>2008-06-18T00:10:00.000-04:00</published><updated>2008-06-18T00:10:00.000-04:00</updated><title type='text'>Kain, I was disappointed by this change as you wer...</title><summary type='text'>Kain, I was disappointed by this change as you were.&lt;BR/&gt;As I said in the blog post, turning ActiveRecord::Base.include_root_in_json  on is not helpful. It's good that it is turned off by default, though.&lt;BR/&gt;I converted a Rails 2.0.2 project just last week (to use the named_scope feature) by only changing the gem version in the environment.rb file, and so far everything including my ext js still</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/1217183519507701242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/1217183519507701242'/><link rel='alternate' type='text/html' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html?showComment=1213762200000#c1217183519507701242' title=''/><author><name>Steffen Hiller</name><uri>http://www.blogger.com/profile/04810135337219418093</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='13877413348971913896'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html' ref='tag:blogger.com,1999:blog-8034707056574245617.post-2393311157429657744' source='http://www.blogger.com/feeds/8034707056574245617/posts/default/2393311157429657744' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8034707056574245617.post-434073353875735781</id><published>2008-06-17T20:25:00.000-04:00</published><updated>2008-06-17T20:25:00.000-04:00</updated><title type='text'>I just started with Rails 2.1 and Ext.. I'm disapp...</title><summary type='text'>I just started with Rails 2.1 and Ext.. I'm disappointed :(&lt;BR/&gt;&lt;BR/&gt;however I get different results about the data "root", with false no root, with true every element have the root, but no "super plural root".&lt;BR/&gt;&lt;BR/&gt;ActiveRecord::Base.include_root_in_json = false&lt;BR/&gt;[{"updated_at": "2008-06-17T23:05:15Z", "language": null, "body": "test", "id": 1, "created_at": "2008-06-17T23&lt;BR/&gt;:05:15Z"}, </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/434073353875735781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/434073353875735781'/><link rel='alternate' type='text/html' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html?showComment=1213748700000#c434073353875735781' title=''/><author><name>kain</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html' ref='tag:blogger.com,1999:blog-8034707056574245617.post-2393311157429657744' source='http://www.blogger.com/feeds/8034707056574245617/posts/default/2393311157429657744' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8034707056574245617.post-2333267456579361396</id><published>2008-05-28T15:56:00.000-04:00</published><updated>2008-05-28T15:56:00.000-04:00</updated><title type='text'>Thanks for your positive feedback, eneko! Yes, Rai...</title><summary type='text'>Thanks for your positive feedback, eneko! Yes, Rails and Ext rock. ;-)</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/2333267456579361396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/2333267456579361396'/><link rel='alternate' type='text/html' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html?showComment=1212004560000#c2333267456579361396' title=''/><author><name>Steffen Hiller</name><uri>http://www.blogger.com/profile/04810135337219418093</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='13877413348971913896'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html' ref='tag:blogger.com,1999:blog-8034707056574245617.post-2393311157429657744' source='http://www.blogger.com/feeds/8034707056574245617/posts/default/2393311157429657744' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8034707056574245617.post-704864236007831576</id><published>2008-05-28T09:05:00.000-04:00</published><updated>2008-05-28T09:05:00.000-04:00</updated><title type='text'>nice information and nice blog. I have just discov...</title><summary type='text'>nice information and nice blog. I have just discovered it but it will automatically go to favorites.&lt;BR/&gt;&lt;BR/&gt;Keep going!&lt;BR/&gt;&lt;BR/&gt;Rails+Ext rocks!</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/704864236007831576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8034707056574245617/2393311157429657744/comments/default/704864236007831576'/><link rel='alternate' type='text/html' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html?showComment=1211979900000#c704864236007831576' title=''/><author><name>Eneko</name><uri>http://www.blogger.com/profile/15900334499658388931</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.extjswithrails.com/2008/05/more-rails-21-that-target-json-and.html' ref='tag:blogger.com,1999:blog-8034707056574245617.post-2393311157429657744' source='http://www.blogger.com/feeds/8034707056574245617/posts/default/2393311157429657744' type='text/html'/></entry></feed>