From rubyamf-discussion at rubyforge.org Mon Oct 1 10:32:42 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Mon, 1 Oct 2007 16:32:42 +0200 Subject: [RubyAMF] returning nested objects from rails to flex Message-ID: Hi all, >From my rails app I am trying to send an array of objects one of whose param is an object. Here is the relevant code: Models: ----------- Project < ActiveRecord::Base has_many :experiments end Experiment < ActiveRecord::Base belongs_to :project end Controller: -------------- def list es = Experiment.find(:all, :include => :project) respond_to do |f| f.amf { render :amf => es } end end The above controller code returns undefined/null 'result' object. If I do not include the :project it works fine. Any idea how to get this working under rubyamf ? Also, Is there a way to see rubyamf server log apart from the rails development log? That will useful for debugging. Right now I rely on flex builder for my client side debugging. Thanks. -gnana From rubyamf-discussion at rubyforge.org Mon Oct 1 11:49:58 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Mon, 1 Oct 2007 08:49:58 -0700 Subject: [RubyAMF] returning nested objects from rails to flex In-Reply-To: References: Message-ID: Hey Gana, Sorry about this problem, another user just found this bug and it will be fixed in 1.3.4. The problem is when returning a VO that has an association of :belongs_to. It will be wrapped in an array.. like so: if you do this in rails: format.amf { render :amf => es } Because of the current bug, you need to type the "project" property on the VO as an array, it will be in: re.result[0].project[0] in 1.3.4 it will be fixed to be: re.result[0].project I'll be back from vacation the week of the 8th and will have a 1.3.4 release shortly after with this and a number of other fixes. Hang in there, sorry man.. -Aaron On 10/1/07, RubyAMF wrote: > > Hi all, > > >From my rails app I am trying to send an array of objects > one of whose param is an object. > > Here is the relevant code: > > Models: > ----------- > Project < ActiveRecord::Base > has_many :experiments > end > > Experiment < ActiveRecord::Base > belongs_to :project > end > > Controller: > -------------- > def list > es = Experiment.find(:all, :include => :project) > respond_to do |f| > f.amf { render :amf => es } > end > end > > The above controller code returns undefined/null > 'result' object. If I do not include the :project it works > fine. > > Any idea how to get this working under rubyamf ? > > Also, Is there a way to see rubyamf server log apart > from the rails development log? That will useful for > debugging. Right now I rely on flex builder for my > client side debugging. > > Thanks. > > -gnana > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071001/3f9eda8c/attachment-0001.html From rubyamf-discussion at rubyforge.org Mon Oct 1 12:06:55 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Mon, 1 Oct 2007 09:06:55 -0700 Subject: [RubyAMF] RubyAMF - developers wanted Message-ID: If anyone wants to get in on RubyAMF development, I'd love some help. There are a few bugs that I'll be fixing for 1.3.4. After 1.3.4 Rails 2.0 support will be under way, and the wiki book. You can probably imagine how much work it is. So by having help the book and Rails 2.0 support will be done sooner, and more people will start using it RAMF. One or two more guys that can actually put some time into it would be best of course. Anyone interested? Jason I think you were right? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071001/5abb0c23/attachment.html From rubyamf-discussion at rubyforge.org Mon Oct 1 15:39:07 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Mon, 1 Oct 2007 15:39:07 -0400 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: References: Message-ID: <20071001153907.ce6eaeb0.seth@4thtemple.com> is there a todo list of things needing to be done? On Mon, 1 Oct 2007 09:06:55 -0700 RubyAMF wrote: > If anyone wants to get in on RubyAMF development, I'd love some help. There > are a few bugs that I'll be fixing for 1.3.4. After 1.3.4 Rails 2.0 support > will be under way, and the wiki book. You can probably imagine how much work > it is. So by having help the book and Rails 2.0 support will be done sooner, > and more people will start using it RAMF. One or two more guys that can > actually put some time into it would be best of course. > > Anyone interested? Jason I think you were right? > -- seth From rubyamf-discussion at rubyforge.org Mon Oct 1 15:57:40 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Mon, 1 Oct 2007 12:57:40 -0700 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: <20071001153907.ce6eaeb0.seth@4thtemple.com> References: <20071001153907.ce6eaeb0.seth@4thtemple.com> Message-ID: Yeah, -Update the active_record_adapter to support a model association of :belongs_to. Currently if a model has a :belongs_to relationship, that object get's returned wrapped in an array ( re.result.myModelVO.myBelongsToProperty [0]. Which is not correct. It should be re.result.myModelVO.myBelognsToProperty. This happens in the active_record_adapter#run_single method, because the payload object is initially created as an array (initla_data = []). the object get's pushed into the array. Some time needs to be put into this to correctly alter the adapter so that it won't break situations where models have a :has_many relationship as well. -production mode unsafe? There are still some situations where rubyamf requests are causing production mode problems. The exact problem lies in the util/action_controller.rb. the one conditional (if options.nil?) render_file etc. -make sure default active record properties like created_at, and updated_at don't get used or updated from the incoming values from a VO. -Check nested route support. -implement setRemoteCredentials, (base64) authentication. -flash 9 standalone content debugger support verification. Sometimes it works, sometimes it doesn't. AH. All this while keeping RubyAMF Lite in mind.. these types of changes to the core don't usually effect rubyamf lite, but it's good to test everything with rails and lite.. That's all I have right now, once those are done 1.3.4 will be released.. The next iteration of development should be in a branch for rails 2.0support. I'm up for anyone helping out, if you can fix a bug, submit a patch. I probably won't open up SVN commiting for anyone right away, but after a few bug fixes / patches i'd add people onto the project. Also a note, I stopped testing for Flash 8 support. AMF0 is obviously still there, but weather or not it works for AMF0 recordsets / paging is not something I test anymore. -Aaron On 10/1/07, RubyAMF < rubyamf-discussion at rubyforge.org> wrote: > > is there a todo list of things needing to be done? > > On Mon, 1 Oct 2007 09:06:55 -0700 > RubyAMF wrote: > > > If anyone wants to get in on RubyAMF development, I'd love some help. > There > > are a few bugs that I'll be fixing for 1.3.4. After 1.3.4 Rails 2.0support > > will be under way, and the wiki book. You can probably imagine how much > work > > it is. So by having help the book and Rails 2.0 support will be done > sooner, > > and more people will start using it RAMF. One or two more guys that can > > actually put some time into it would be best of course. > > > > Anyone interested? Jason I think you were right? > > > > > -- > seth > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071001/5793dfe1/attachment.html From rubyamf-discussion at rubyforge.org Mon Oct 1 16:43:45 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Mon, 1 Oct 2007 16:43:45 -0400 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: References: <20071001153907.ce6eaeb0.seth@4thtemple.com> Message-ID: <20071001164345.4cd3c473.seth@4thtemple.com> I apologize for not being familiar with much of RAMF, my project hasn't progressed to backend developement yet.... But to clarify what is happening, is if a call is made to a model that uses foreign key constraints, the resulting object will be returned to the swf as an array wrapped in another array, where the real model array/hash is inside index 0? (sorry.. i havent actually gotten to the backend portion of my project yet..) > -Update the active_record_adapter to support a model association of > :belongs_to. Currently if a model has a :belongs_to relationship, that > object get's returned wrapped in an array ( > re.result.myModelVO.myBelongsToProperty [0]. Which is not correct. It should > be re.result.myModelVO.myBelognsToProperty. This happens in the > active_record_adapter#run_single method, because the payload object is > initially created as an array (initla_data = []). the object get's pushed > into the array. Some time needs to be put into this to correctly alter the > adapter so that it won't break situations where models have a :has_many > relationship as well. From rubyamf-discussion at rubyforge.org Mon Oct 1 23:49:02 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Mon, 1 Oct 2007 20:49:02 -0700 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: <20071001164345.4cd3c473.seth@4thtemple.com> References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071001164345.4cd3c473.seth@4thtemple.com> Message-ID: Yeah, so let's say you have these models defined: class User < ActiveRecord::Base has_many :addresses end class Address < ActiveRecord::Base belongs_to :user end Now in a controller you do this: class MyController < ... def myaction myadd = Address.find(1, :include => :user) render :amf => myadd end end The result in RubyAMF will be a VO, and the "user" property will be an array, and the 0 index will be the "user" object. This is incorrect as the "user" property should be the user object as expected. this happens in the active_record_adapter.. -Aaron On 10/1/07, RubyAMF wrote: > > I apologize for not being familiar with much of RAMF, my project hasn't > progressed to backend developement yet.... > > But to clarify what is happening, is if a call is made to a model that > uses foreign key constraints, the resulting object will be returned to the > swf as an array wrapped in another array, where the real model array/hash is > inside index 0? > > (sorry.. i havent actually gotten to the backend portion of my project > yet..) > > > -Update the active_record_adapter to support a model association of > > :belongs_to. Currently if a model has a :belongs_to relationship, that > > object get's returned wrapped in an array ( > > re.result.myModelVO.myBelongsToProperty [0]. Which is not correct. It > should > > be re.result.myModelVO.myBelognsToProperty. This happens in the > > active_record_adapter#run_single method, because the payload object is > > initially created as an array (initla_data = []). the object get's > pushed > > into the array. Some time needs to be put into this to correctly alter > the > > adapter so that it won't break situations where models have a :has_many > > relationship as well. > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071001/3f54aad8/attachment.html From rubyamf-discussion at rubyforge.org Tue Oct 2 00:12:21 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Mon, 1 Oct 2007 21:12:21 -0700 Subject: [RubyAMF] wiki archive Message-ID: Hey Everyone, just a heads up that the first wiki that ha quite a bit of info in it is still accessible here: http://rubyamf.org:2500/ -Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071001/a7ab2c9d/attachment.html From rubyamf-discussion at rubyforge.org Tue Oct 2 02:45:03 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Tue, 2 Oct 2007 02:45:03 -0400 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071001164345.4cd3c473.seth@4thtemple.com> Message-ID: <20071002024503.0a98b4ec.seth@4thtemple.com> tomorow i'll take a deeper look at it. On Mon, 1 Oct 2007 20:49:02 -0700 RubyAMF wrote: > Yeah, so let's say you have these models defined: > > class User < ActiveRecord::Base > has_many :addresses > end > > class Address < ActiveRecord::Base > belongs_to :user > end > > Now in a controller you do this: > class MyController < ... > def myaction > myadd = Address.find(1, :include => :user) > render :amf => myadd > end > end > > > The result in RubyAMF will be a VO, and the "user" property will be an > array, and the 0 index will be the "user" object. This is incorrect as the > "user" property should be the user object as expected. this happens in the > active_record_adapter.. > > -Aaron > > > On 10/1/07, RubyAMF wrote: > > > > I apologize for not being familiar with much of RAMF, my project hasn't > > progressed to backend developement yet.... > > > > But to clarify what is happening, is if a call is made to a model that > > uses foreign key constraints, the resulting object will be returned to the > > swf as an array wrapped in another array, where the real model array/hash is > > inside index 0? > > > > (sorry.. i havent actually gotten to the backend portion of my project > > yet..) > > > > > -Update the active_record_adapter to support a model association of > > > :belongs_to. Currently if a model has a :belongs_to relationship, that > > > object get's returned wrapped in an array ( > > > re.result.myModelVO.myBelongsToProperty [0]. Which is not correct. It > > should > > > be re.result.myModelVO.myBelognsToProperty. This happens in the > > > active_record_adapter#run_single method, because the payload object is > > > initially created as an array (initla_data = []). the object get's > > pushed > > > into the array. Some time needs to be put into this to correctly alter > > the > > > adapter so that it won't break situations where models have a :has_many > > > relationship as well. > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > -- seth From rubyamf-discussion at rubyforge.org Tue Oct 2 15:08:52 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Tue, 2 Oct 2007 15:08:52 -0400 Subject: [RubyAMF] first application , big trouble Message-ID: hello all, i am tring to create my first application with RubyAmf, I watche also the video "Rails_introduction". When i launch the url http://localhost:3000/rubyamf/gateway I have this error. we can use ruamf with rail 2.0 thanks guys undefined method `render_text' for # /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ rubyamf/rubyamf_core/util/action_controller.rb:39:in `render' /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ rubyamf_controller.rb:78:in `gateway' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/base.rb:1104:in `send' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/base.rb:1104:in `perform_action_without_filters' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/filters.rb:695:in `call_filters' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/filters.rb:687:in `perform_action_without_benchmark' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/rescue.rb:175:in `perform_action_without_caching' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/caching.rb:665:in `perform_action' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activerecord/lib/active_record/connection_adapters/abstract/ query_cache.rb:33:in `cache' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activerecord/lib/active_record/query_cache.rb:8:in `cache' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/caching.rb:664:in `perform_action' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/base.rb:512:in `send' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/base.rb:512:in `process_without_filters' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/filters.rb:683:in `process_without_session_management_support' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/session_management.rb:122:in `process' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/base.rb:372:in `process' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 78:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 76:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 76:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:271:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: 127:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ command.rb:211:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:489:in `load' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:489:in `load' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:489:in `load' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ railties/lib/commands/servers/mongrel.rb:64 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:496:in `require' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:496:in `require' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ railties/lib/commands/server.rb:39 script/server:3:in `require' script/server:3 /rubyamf/gateway/render_action undefined method `render_file' for # /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ rubyamf/rubyamf_core/util/action_controller.rb:17:in `render' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/base.rb:1105:in `perform_action_without_filters' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/filters.rb:695:in `call_filters' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/filters.rb:687:in `perform_action_without_benchmark' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/rescue.rb:175:in `perform_action_without_caching' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/caching.rb:665:in `perform_action' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activerecord/lib/active_record/connection_adapters/abstract/ query_cache.rb:33:in `cache' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activerecord/lib/active_record/query_cache.rb:8:in `cache' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/caching.rb:664:in `perform_action' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/base.rb:512:in `send' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/base.rb:512:in `process_without_filters' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/filters.rb:683:in `process_without_session_management_support' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/session_management.rb:122:in `process' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/base.rb:372:in `process' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 78:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 76:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 76:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:271:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: 127:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ command.rb:211:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:489:in `load' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:489:in `load' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:489:in `load' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ railties/lib/commands/servers/mongrel.rb:64 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:496:in `require' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ activesupport/lib/active_support/dependencies.rb:496:in `require' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ railties/lib/commands/server.rb:39 script/server:3:in `require' script/server:3 RubyamfController: missing default helper path rubyamf_helper Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-02 15:06:01) [GET] Session ID: BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo% 0ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZl% 0AYzg4MDQxMmM3ZDE3OTU%3D--f9c9824ca30cdd70ecf6614a95ded259fdd069d1 Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} From rubyamf-discussion at rubyforge.org Tue Oct 2 16:57:58 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Tue, 2 Oct 2007 13:57:58 -0700 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: Message-ID: Rails 2.0 is not officially supported yet. And those screencasts are very old. Here is the official rails installer: http://blog.rubyamf.org/?p=34 -Aaron On 10/2/07, RubyAMF wrote: > > hello all, > > > i am tring to create my first application with RubyAmf, I watche also > the video "Rails_introduction". > > When i launch the url http://localhost:3000/rubyamf/gateway > > I have this error. we can use ruamf with rail 2.0 > > thanks guys > > undefined method `render_text' for # > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/util/action_controller.rb:39:in `render' > /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ > rubyamf_controller.rb:78:in `gateway' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1104:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1104:in > `perform_action_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:695:in `call_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:687:in > `perform_action_without_benchmark' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/rescue.rb:175:in > `perform_action_without_caching' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:665:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/connection_adapters/abstract/ > query_cache.rb:33:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/query_cache.rb:8:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:664:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in > `process_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:683:in > `process_without_session_management_support' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/session_management.rb:122:in `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:372:in `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 78:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/server.rb:39 > script/server:3:in `require' > script/server:3 > /rubyamf/gateway/render_action > undefined method `render_file' for # > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/util/action_controller.rb:17:in `render' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1105:in > `perform_action_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:695:in `call_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:687:in > `perform_action_without_benchmark' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/rescue.rb:175:in > `perform_action_without_caching' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:665:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/connection_adapters/abstract/ > query_cache.rb:33:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/query_cache.rb:8:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:664:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in > `process_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:683:in > `process_without_session_management_support' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/session_management.rb:122:in `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:372:in `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 78:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/server.rb:39 > script/server:3:in `require' > script/server:3 > RubyamfController: missing default helper path rubyamf_helper > > > Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-02 > 15:06:01) [GET] > Session ID: > BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo% > 0ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZl% > 0AYzg4MDQxMmM3ZDE3OTU%3D--f9c9824ca30cdd70ecf6614a95ded259fdd069d1 > Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071002/0f5077ef/attachment-0001.html From rubyamf-discussion at rubyforge.org Wed Oct 3 00:32:47 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 00:32:47 -0400 Subject: [RubyAMF] ssr Message-ID: <20071003003247.517ae477.seth@4thtemple.com> while setting up a test environment for the foreign key array thing.. i cleaned up the warnings mxmlc was taunting me about ssr .. albeit not much.. here it is: www.4thtemple.com/stuff/ssr.tar.gz -- seth From rubyamf-discussion at rubyforge.org Wed Oct 3 00:49:15 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Tue, 2 Oct 2007 21:49:15 -0700 Subject: [RubyAMF] ssr In-Reply-To: <20071003003247.517ae477.seth@4thtemple.com> References: <20071003003247.517ae477.seth@4thtemple.com> Message-ID: Great! Thanks man, I'll get that up asap. On 10/2/07, RubyAMF wrote: > > while setting up a test environment for the foreign key array thing.. i > cleaned up the warnings mxmlc was taunting me about ssr .. albeit not much.. > here it is: www.4thtemple.com/stuff/ssr.tar.gz > > -- > seth > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071002/a24eb635/attachment.html From rubyamf-discussion at rubyforge.org Wed Oct 3 01:55:11 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Tue, 2 Oct 2007 23:55:11 -0600 Subject: [RubyAMF] Getting Started In-Reply-To: References: <20071003003247.517ae477.seth@4thtemple.com> Message-ID: <880C88B0-A0B6-4D04-885A-8ADBD0FF50D9@showcase60.com> I've been Googling tonight, trying to get my head around the best way to implement RubyAMF for Flex + Rails projects. There seems to be some vague areas I can't seem to gleen from anywhere I know of. If there are archives of this discussion group somewhere available, I'm sure these answers are somewhere contained in past discussions. (By the way, thanks for posting the clean wiki on port 2500 last night, that really helped me see some of what we could do with RubyAMF). So, if it's all right, I'd like to state what I think I know and see where I've missed the boat. This is full of assumptions, so if anyone cares to check this list and make sure it's fairly clean, I'll convert it into a much-better-written article that can be published as a blog article or part of the wiki for others' consumption. Probably a few well-written tutorials could go a long way, that I'd be happy to write once I've connected the dots myself. Anyway, here we go: * To get going, I can do something as simple as install rubyamf as a plugin in my rails app. This will setup the rubyamf_controller, and a few other things. * Even though there are some config files for VOs with this install, I can ignore those. * In a Rails instance, the gateway is simply going to be at /rubyamf/ gateway * However I'm going to organize my services and events, I've got to set them up. So, I could define things with a Cairngorm architecture, but it's got to have a remoting service that can handle the rpc calls. * It seems that RemoteObject is the way to setup the service in this case. So, I could setup my services.xml like we find in the hello_world example from the wiki. The actual RemoteObject source is the controller we're talking to. The destination is the name of the service we're calling, as setup in the services.xml file. The RemoteObject will have a method whose name is set to the controller method being called. * The Rails w/ a rubyamf plugin knows things like respond_to :amf to allow me to send back ActiveRecord. So, I can simply: format.amf { render :amf => content }, WHERE CONTENT IS AN ARRAY OF ACTIVERECORD OBJECTS (right?). This sends the data back in a RecordSet. If I want to just send the data back, I can send it as my_model.single! and get the job done. * It seems there are some helpers, like OnFault. Actually implementing these is a mystery to me so far. * The Rails filters can be used, like with other controller methods * There seems to be some extra work determining which RecordSets are expected, but not with Flex stuff. Those will all use AMF3 automatically. * It seems I need to manually create a VO on the client side that describes the attributes of my ActiveRecord object. I can then take the object sent back from the service and assign it to this VO. As far as I've seen, there is no automatic way to translate a service's onResult response into an expected model as well. * There are no significant changes between Flex2 and Flex3 that I need to change so far, right? There are some more minor things but they should not effect the way we integrate with RubyAMF. * All this is an alternative to a WebOrb approach, which also uses RPC services, but leaves the work of serializing/deserializing to the developer. The net effect is that the bandwidth is a little higher, the client-side processing is a little higher, and the complexity is a little more involved with WebOrb vs. RubyAMF. Am I missing anything here? Things are still a bit vague for me. So, I'll sleep on these ideas, add to them any clarification I can get from this post, and hopefully start experimenting in earnest in the morning. Warm regards, David Richards From rubyamf-discussion at rubyforge.org Wed Oct 3 02:27:21 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Tue, 2 Oct 2007 23:27:21 -0700 Subject: [RubyAMF] Getting Started In-Reply-To: <880C88B0-A0B6-4D04-885A-8ADBD0FF50D9@showcase60.com> References: <20071003003247.517ae477.seth@4thtemple.com> <880C88B0-A0B6-4D04-885A-8ADBD0FF50D9@showcase60.com> Message-ID: Hello, in response to your questions.. * To get going, I can do something as simple as install rubyamf as a plugin in my rails app. This will setup the rubyamf_controller, and a few other things. Yep. * Even though there are some config files for VOs with this install, I can ignore those. Yep. * In a Rails instance, the gateway is simply going to be at /rubyamf/ gateway Yep *However I'm going to organize my services and events, I've got to set them up. So, I could define things with a Cairngorm architecture, but it's got to have a remoting service that can handle the rpc calls. Yes, anyway you want to organize your flex app doesn't matter, as RemoteObject is just the part that does the RPC communication. So when using cairngorm, a RemoteObject is within the ServiceLocator scope. Make sense? * The Rails w/ a rubyamf plugin knows things like respond_to :amf to allow me to send back ActiveRecord. So, I can simply: format.amf { render :amf => content }, WHERE CONTENT IS AN ARRAY OF ACTIVERECORD OBJECTS (right?). This sends the data back in a RecordSet. If I want to just send the data back, I can send it as my_model.single! and get the job done. Yes, anything you give to the render :amf method will render amf. Strings, Arrays, numbers, openstructs, etc. Generally in rails' controllers you'll only be sending back active record instances. For example returning a " User.find(1)" value object. single! and as_single! return the object back to your result, instead of being wrapped in an array. So {} VS [{}]. Make sense? * The Rails filters can be used, like with other controller methods Short answer, yes. Have I tested every filter type? no. I've tested basic filter types, before, append, prepend, etc. *It seems there are some helpers, like OnFault. Actually implementing these is a mystery to me so far. Refer to this posting: http://blog.rubyamf.org/?p=12 - that should help clarify why FaultObject is nice. * There seems to be some extra work determining which RecordSets are expected, but not with Flex stuff. Those will all use AMF3 automatically. This limitation has been removed. Setting the recordset_format is no longer needed. Note it was never needed if you use RemoteObject. * It seems I need to manually create a VO on the client side that describes the attributes of my ActiveRecord object. I can then take the object sent back from the service and assign it to this VO. As far as I've seen, there is no automatic way to translate a service's onResult response into an expected model as well. This is the way VO is handled for any remoting service. If you return an a active record from Rails that has a VO definition in the configuration, you will get an instance of that VO on the client side. So if you have a VO def like so: ValueObjects.register({:incoming => 'User', :map_to => 'User', :outgoing => 'User', :type => 'active_record'}). And you returned an instance of 'User' from your rails controller. You would get an instance of 'User' in your onResult handler. This is assuming of course you've got a User VO defined in Flex, and also a dummy VO has been created somewhere in application instantiation so that the class actually gets compiled into the player. I can expand on the "dummy" instantiation a little more if needed. * There are no significant changes between Flex2 and Flex3 that I need to change so far, right? There are some more minor things but they should not effect the way we integrate with RubyAMF. Works fine with Flex 3 *All this is an alternative to a WebOrb approach, which also uses RPC services, but leaves the work of serializing/deserializing to the developer. The net effect is that the bandwidth is a little higher, the client-side processing is a little higher, and the complexity is a little more involved with WebOrb vs. RubyAMF. Not sure what you mean by leaving the serializing/deserializing up to the developer. Actually RubyAMF has better/smarter support for serialization/deserialization. RubyAMF is still doing the de/serialization for you. And RubyAMF is 10x faster. Hope that helps. -Aaron On 10/2/07, RubyAMF wrote: > > I've been Googling tonight, trying to get my head around the best way > to implement RubyAMF for Flex + Rails projects. There seems to be > some vague areas I can't seem to gleen from anywhere I know of. If > there are archives of this discussion group somewhere available, I'm > sure these answers are somewhere contained in past discussions. (By > the way, thanks for posting the clean wiki on port 2500 last night, > that really helped me see some of what we could do with RubyAMF). > > So, if it's all right, I'd like to state what I think I know and see > where I've missed the boat. This is full of assumptions, so if > anyone cares to check this list and make sure it's fairly clean, I'll > convert it into a much-better-written article that can be published > as a blog article or part of the wiki for others' consumption. > Probably a few well-written tutorials could go a long way, that I'd > be happy to write once I've connected the dots myself. Anyway, here > we go: > > * To get going, I can do something as simple as install rubyamf as a > plugin in my rails app. This will setup the rubyamf_controller, and > a few other things. > * Even though there are some config files for VOs with this install, > I can ignore those. > * In a Rails instance, the gateway is simply going to be at /rubyamf/ > gateway > * However I'm going to organize my services and events, I've got to > set them up. So, I could define things with a Cairngorm > architecture, but it's got to have a remoting service that can handle > the rpc calls. > * It seems that RemoteObject is the way to setup the service in this > case. So, I could setup my services.xml like we find in the > hello_world example from the wiki. The actual RemoteObject source is > the controller we're talking to. The destination is the name of the > service we're calling, as setup in the services.xml file. The > RemoteObject will have a method whose name is set to the controller > method being called. > * The Rails w/ a rubyamf plugin knows things like respond_to :amf to > allow me to send back ActiveRecord. So, I can simply: format.amf > { render :amf => content }, WHERE CONTENT IS AN ARRAY OF ACTIVERECORD > OBJECTS (right?). This sends the data back in a RecordSet. If I > want to just send the data back, I can send it as my_model.single! > and get the job done. > * It seems there are some helpers, like OnFault. Actually > implementing these is a mystery to me so far. > * The Rails filters can be used, like with other controller methods > * There seems to be some extra work determining which RecordSets are > expected, but not with Flex stuff. Those will all use AMF3 > automatically. > * It seems I need to manually create a VO on the client side that > describes the attributes of my ActiveRecord object. I can then take > the object sent back from the service and assign it to this VO. As > far as I've seen, there is no automatic way to translate a service's > onResult response into an expected model as well. > * There are no significant changes between Flex2 and Flex3 that I > need to change so far, right? There are some more minor things but > they should not effect the way we integrate with RubyAMF. > * All this is an alternative to a WebOrb approach, which also uses > RPC services, but leaves the work of serializing/deserializing to the > developer. The net effect is that the bandwidth is a little higher, > the client-side processing is a little higher, and the complexity is > a little more involved with WebOrb vs. RubyAMF. > > Am I missing anything here? Things are still a bit vague for me. > So, I'll sleep on these ideas, add to them any clarification I can > get from this post, and hopefully start experimenting in earnest in > the morning. > > Warm regards, > > David Richards > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071002/a40d91a4/attachment-0001.html From rubyamf-discussion at rubyforge.org Wed Oct 3 02:30:49 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Tue, 2 Oct 2007 23:30:49 -0700 Subject: [RubyAMF] Getting Started In-Reply-To: References: <20071003003247.517ae477.seth@4thtemple.com> <880C88B0-A0B6-4D04-885A-8ADBD0FF50D9@showcase60.com> Message-ID: One other thing about this one: * Even though there are some config files for VOs with this install, I can ignore those. Yes you can ignore the configuration files - however if you want to send VO's back and forth with RubyAMF, then you MUST be registering value objects in the configuration so that rubyamf can handle incoming and outgoing VO's. -Aaron On 10/2/07, Aaron Smith wrote: > > Hello, in response to your questions.. > > * To get going, I can do something as simple as install rubyamf as a > plugin in my rails app. This will setup the rubyamf_controller, and > a few other things. > > Yep. > > * Even though there are some config files for VOs with this install, > I can ignore those. > > Yep. > > * In a Rails instance, the gateway is simply going to be at /rubyamf/ > gateway > > Yep > > *However I'm going to organize my services and events, I've got to > set them up. So, I could define things with a Cairngorm > architecture, but it's got to have a remoting service that can handle > the rpc calls. > > Yes, anyway you want to organize your flex app doesn't matter, as > RemoteObject is just the part that does the RPC communication. So when using > cairngorm, a RemoteObject is within the ServiceLocator scope. Make sense? > > * The Rails w/ a rubyamf plugin knows things like respond_to :amf to > allow me to send back ActiveRecord. So, I can simply: format.amf > { render :amf => content }, WHERE CONTENT IS AN ARRAY OF ACTIVERECORD > OBJECTS (right?). This sends the data back in a RecordSet. If I > want to just send the data back, I can send it as my_model.single! > and get the job done. > > Yes, anything you give to the render :amf method will render amf. Strings, > Arrays, numbers, openstructs, etc. Generally in rails' controllers you'll > only be sending back active record instances. For example returning a " > User.find(1)" value object. single! and as_single! return the object back > to your result, instead of being wrapped in an array. So {} VS [{}]. Make > sense? > > * The Rails filters can be used, like with other controller methods > > Short answer, yes. Have I tested every filter type? no. I've tested basic > filter types, before, append, prepend, etc. > > *It seems there are some helpers, like OnFault. Actually > implementing these is a mystery to me so far. > > Refer to this posting: http://blog.rubyamf.org/?p=12 - that should help > clarify why FaultObject is nice. > > * There seems to be some extra work determining which RecordSets are > expected, but not with Flex stuff. Those will all use AMF3 > automatically. > > This limitation has been removed. Setting the recordset_format is no > longer needed. Note it was never needed if you use RemoteObject. > > * It seems I need to manually create a VO on the client side that > describes the attributes of my ActiveRecord object. I can then take > the object sent back from the service and assign it to this VO. As > far as I've seen, there is no automatic way to translate a service's > onResult response into an expected model as well. > > This is the way VO is handled for any remoting service. If you return an a > active record from Rails that has a VO definition in the configuration, you > will get an instance of that VO on the client side. So if you have a VO def > like so: ValueObjects.register({:incoming => 'User', :map_to => 'User', > :outgoing => 'User', :type => 'active_record'}). And you returned an > instance of 'User' from your rails controller. You would get an instance of > 'User' in your onResult handler. This is assuming of course you've got a > User VO defined in Flex, and also a dummy VO has been created somewhere in > application instantiation so that the class actually gets compiled into the > player. I can expand on the "dummy" instantiation a little more if needed. > > * There are no significant changes between Flex2 and Flex3 that I > need to change so far, right? There are some more minor things but > they should not effect the way we integrate with RubyAMF. > > Works fine with Flex 3 > > *All this is an alternative to a WebOrb approach, which also uses > RPC services, but leaves the work of serializing/deserializing to the > developer. The net effect is that the bandwidth is a little higher, > the client-side processing is a little higher, and the complexity is > a little more involved with WebOrb vs. RubyAMF. > > Not sure what you mean by leaving the serializing/deserializing up to the > developer. Actually RubyAMF has better/smarter support for > serialization/deserialization. RubyAMF is still doing the de/serialization > for you. And RubyAMF is 10x faster. > > > Hope that helps. > -Aaron > > > > > On 10/2/07, RubyAMF wrote: > > > > I've been Googling tonight, trying to get my head around the best way > > to implement RubyAMF for Flex + Rails projects. There seems to be > > some vague areas I can't seem to gleen from anywhere I know of. If > > there are archives of this discussion group somewhere available, I'm > > sure these answers are somewhere contained in past discussions. (By > > the way, thanks for posting the clean wiki on port 2500 last night, > > that really helped me see some of what we could do with RubyAMF). > > > > So, if it's all right, I'd like to state what I think I know and see > > where I've missed the boat. This is full of assumptions, so if > > anyone cares to check this list and make sure it's fairly clean, I'll > > convert it into a much-better-written article that can be published > > as a blog article or part of the wiki for others' consumption. > > Probably a few well-written tutorials could go a long way, that I'd > > be happy to write once I've connected the dots myself. Anyway, here > > we go: > > > > * To get going, I can do something as simple as install rubyamf as a > > plugin in my rails app. This will setup the rubyamf_controller, and > > a few other things. > > * Even though there are some config files for VOs with this install, > > I can ignore those. > > * In a Rails instance, the gateway is simply going to be at /rubyamf/ > > gateway > > * However I'm going to organize my services and events, I've got to > > set them up. So, I could define things with a Cairngorm > > architecture, but it's got to have a remoting service that can handle > > the rpc calls. > > * It seems that RemoteObject is the way to setup the service in this > > case. So, I could setup my services.xml like we find in the > > hello_world example from the wiki. The actual RemoteObject source is > > the controller we're talking to. The destination is the name of the > > service we're calling, as setup in the services.xml file. The > > RemoteObject will have a method whose name is set to the controller > > method being called. > > * The Rails w/ a rubyamf plugin knows things like respond_to :amf to > > allow me to send back ActiveRecord. So, I can simply: format.amf > > { render :amf => content }, WHERE CONTENT IS AN ARRAY OF ACTIVERECORD > > OBJECTS (right?). This sends the data back in a RecordSet. If I > > want to just send the data back, I can send it as my_model.single! > > and get the job done. > > * It seems there are some helpers, like OnFault. Actually > > implementing these is a mystery to me so far. > > * The Rails filters can be used, like with other controller methods > > * There seems to be some extra work determining which RecordSets are > > expected, but not with Flex stuff. Those will all use AMF3 > > automatically. > > * It seems I need to manually create a VO on the client side that > > describes the attributes of my ActiveRecord object. I can then take > > the object sent back from the service and assign it to this VO. As > > far as I've seen, there is no automatic way to translate a service's > > onResult response into an expected model as well. > > * There are no significant changes between Flex2 and Flex3 that I > > need to change so far, right? There are some more minor things but > > they should not effect the way we integrate with RubyAMF. > > * All this is an alternative to a WebOrb approach, which also uses > > RPC services, but leaves the work of serializing/deserializing to the > > developer. The net effect is that the bandwidth is a little higher, > > the client-side processing is a little higher, and the complexity is > > a little more involved with WebOrb vs. RubyAMF. > > > > Am I missing anything here? Things are still a bit vague for me. > > So, I'll sleep on these ideas, add to them any clarification I can > > get from this post, and hopefully start experimenting in earnest in > > the morning. > > > > Warm regards, > > > > David Richards > > > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071002/e53189bd/attachment.html From rubyamf-discussion at rubyforge.org Wed Oct 3 02:46:00 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 02:46:00 -0400 Subject: [RubyAMF] ssr In-Reply-To: References: <20071003003247.517ae477.seth@4thtemple.com> Message-ID: <20071003024600.db6304f1.seth@4thtemple.com> np man..the eprom on my midi keyboard broke so I have some extra time to help out.. On Tue, 2 Oct 2007 21:49:15 -0700 RubyAMF wrote: > Great! Thanks man, I'll get that up asap. > > On 10/2/07, RubyAMF wrote: > > > > while setting up a test environment for the foreign key array thing.. i > > cleaned up the warnings mxmlc was taunting me about ssr .. albeit not much.. > > here it is: www.4thtemple.com/stuff/ssr.tar.gz > > > > -- > > seth > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > -- seth From rubyamf-discussion at rubyforge.org Wed Oct 3 03:10:45 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 01:10:45 -0600 Subject: [RubyAMF] Getting Started In-Reply-To: References: <20071003003247.517ae477.seth@4thtemple.com> <880C88B0-A0B6-4D04-885A-8ADBD0FF50D9@showcase60.com> Message-ID: <6D36301D-123E-451C-82F1-0DC21E0AB45D@showcase60.com> This is great. Thank you. It actually helped to get it all out on one page, and see that there were a lot of fuzzy things that I couldn't quite know for sure. It seems those fuzzy things are exactly what you addressed, especially with the VOs. What I'll do is get cracking in the morning on this. I've got about 60 or 70 models that need to have services defined for them in three different applications. That should get my feet wet enough to be able to write some really decent articles on the subject. As far as I can see, Flex is really begging for a standardized approach to development. With the kind of constrained approaches RubyAMF and Cairngorm seem to offer, this may be possible. Then, there can be a community idea like the Flex Way that just gets it done quickly. My next step to really mastering this world of remote services is to write up a series of RSpec tests for RubyAMF. I tried to get started on that last night, but just didn't know enough about the package to even know what it should do. That kind of work always helps me get focused and build momentum. Of course, I'd be happy to submit those to the group, if you'd like to use them. If I can get through those stages of things, I'd be happy to be one of the developers you were asking for on this project. I don't have a lot of time, but I can see that this project offers strategic advantages for my Rails projects, and I want to ensure its success. Anyway, thank you again for the clarification. David On Oct 3, 2007, at 12:30 AM, RubyAMF wrote: > One other thing about this one: > > * Even though there are some config files for VOs with this install, > I can ignore those. > > Yes you can ignore the configuration files - however if you want to > send VO's back and forth with RubyAMF, then you MUST be registering > value objects in the configuration so that rubyamf can handle > incoming and outgoing VO's. > > -Aaron > > > On 10/2/07, Aaron Smith wrote: > Hello, in response to your questions.. > > * To get going, I can do something as simple as install rubyamf as a > plugin in my rails app. This will setup the rubyamf_controller, and > a few other things. > > Yep. > > * Even though there are some config files for VOs with this install, > I can ignore those. > > Yep. > > * In a Rails instance, the gateway is simply going to be at /rubyamf/ > gateway > > Yep > > *However I'm going to organize my services and events, I've got to > set them up. So, I could define things with a Cairngorm > architecture, but it's got to have a remoting service that can handle > the rpc calls. > > Yes, anyway you want to organize your flex app doesn't matter, as > RemoteObject is just the part that does the RPC communication. So > when using cairngorm, a RemoteObject is within the ServiceLocator > scope. Make sense? > > * The Rails w/ a rubyamf plugin knows things like respond_to :amf to > allow me to send back ActiveRecord. So, I can simply: format.amf > { render :amf => content }, WHERE CONTENT IS AN ARRAY OF ACTIVERECORD > OBJECTS (right?). This sends the data back in a RecordSet. If I > want to just send the data back, I can send it as my_model.single! > and get the job done. > > Yes, anything you give to the render :amf method will render amf. > Strings, Arrays, numbers, openstructs, etc. Generally in rails' > controllers you'll only be sending back active record instances. > For example returning a " User.find(1)" value object. single! and > as_single! return the object back to your result, instead of being > wrapped in an array. So {} VS [{}]. Make sense? > > * The Rails filters can be used, like with other controller methods > > Short answer, yes. Have I tested every filter type? no. I've tested > basic filter types, before, append, prepend, etc. > > *It seems there are some helpers, like OnFault. Actually > implementing these is a mystery to me so far. > > Refer to this posting: http://blog.rubyamf.org/?p=12 - that should > help clarify why FaultObject is nice. > > * There seems to be some extra work determining which RecordSets are > expected, but not with Flex stuff. Those will all use AMF3 > automatically. > > This limitation has been removed. Setting the recordset_format is > no longer needed. Note it was never needed if you use RemoteObject. > > * It seems I need to manually create a VO on the client side that > describes the attributes of my ActiveRecord object. I can then take > the object sent back from the service and assign it to this VO. As > far as I've seen, there is no automatic way to translate a service's > onResult response into an expected model as well. > > This is the way VO is handled for any remoting service. If you > return an a active record from Rails that has a VO definition in > the configuration, you will get an instance of that VO on the > client side. So if you have a VO def like so: ValueObjects.register > ({:incoming => 'User', :map_to => 'User', :outgoing => > 'User', :type => 'active_record'}). And you returned an instance of > 'User' from your rails controller. You would get an instance of > 'User' in your onResult handler. This is assuming of course you've > got a User VO defined in Flex, and also a dummy VO has been created > somewhere in application instantiation so that the class actually > gets compiled into the player. I can expand on the "dummy" > instantiation a little more if needed. > > * There are no significant changes between Flex2 and Flex3 that I > need to change so far, right? There are some more minor things but > they should not effect the way we integrate with RubyAMF. > > Works fine with Flex 3 > > *All this is an alternative to a WebOrb approach, which also uses > RPC services, but leaves the work of serializing/deserializing to the > developer. The net effect is that the bandwidth is a little higher, > the client-side processing is a little higher, and the complexity is > a little more involved with WebOrb vs. RubyAMF. > > Not sure what you mean by leaving the serializing/deserializing up > to the developer. Actually RubyAMF has better/smarter support for > serialization/deserialization. RubyAMF is still doing the de/ > serialization for you. And RubyAMF is 10x faster. > > > Hope that helps. > -Aaron > > > > > > On 10/2/07, RubyAMF < rubyamf-discussion at rubyforge.org > wrote: > I've been Googling tonight, trying to get my head around the best way > to implement RubyAMF for Flex + Rails projects. There seems to be > some vague areas I can't seem to gleen from anywhere I know of. If > there are archives of this discussion group somewhere available, I'm > sure these answers are somewhere contained in past discussions. (By > the way, thanks for posting the clean wiki on port 2500 last night, > that really helped me see some of what we could do with RubyAMF). > > So, if it's all right, I'd like to state what I think I know and see > where I've missed the boat. This is full of assumptions, so if > anyone cares to check this list and make sure it's fairly clean, I'll > convert it into a much-better-written article that can be published > as a blog article or part of the wiki for others' consumption. > Probably a few well-written tutorials could go a long way, that I'd > be happy to write once I've connected the dots myself. Anyway, here > we go: > > * To get going, I can do something as simple as install rubyamf as a > plugin in my rails app. This will setup the rubyamf_controller, and > a few other things. > * Even though there are some config files for VOs with this install, > I can ignore those. > * In a Rails instance, the gateway is simply going to be at /rubyamf/ > gateway > * However I'm going to organize my services and events, I've got to > set them up. So, I could define things with a Cairngorm > architecture, but it's got to have a remoting service that can handle > the rpc calls. > * It seems that RemoteObject is the way to setup the service in this > case. So, I could setup my services.xml like we find in the > hello_world example from the wiki. The actual RemoteObject source is > the controller we're talking to. The destination is the name of the > service we're calling, as setup in the services.xml file. The > RemoteObject will have a method whose name is set to the controller > method being called. > * The Rails w/ a rubyamf plugin knows things like respond_to :amf to > allow me to send back ActiveRecord. So, I can simply: format.amf > { render :amf => content }, WHERE CONTENT IS AN ARRAY OF ACTIVERECORD > OBJECTS (right?). This sends the data back in a RecordSet. If I > want to just send the data back, I can send it as my_model.single! > and get the job done. > * It seems there are some helpers, like OnFault. Actually > implementing these is a mystery to me so far. > * The Rails filters can be used, like with other controller methods > * There seems to be some extra work determining which RecordSets are > expected, but not with Flex stuff. Those will all use AMF3 > automatically. > * It seems I need to manually create a VO on the client side that > describes the attributes of my ActiveRecord object. I can then take > the object sent back from the service and assign it to this VO. As > far as I've seen, there is no automatic way to translate a service's > onResult response into an expected model as well. > * There are no significant changes between Flex2 and Flex3 that I > need to change so far, right? There are some more minor things but > they should not effect the way we integrate with RubyAMF. > * All this is an alternative to a WebOrb approach, which also uses > RPC services, but leaves the work of serializing/deserializing to the > developer. The net effect is that the bandwidth is a little higher, > the client-side processing is a little higher, and the complexity is > a little more involved with WebOrb vs. RubyAMF. > > Am I missing anything here? Things are still a bit vague for me. > So, I'll sleep on these ideas, add to them any clarification I can > get from this post, and hopefully start experimenting in earnest in > the morning. > > Warm regards, > > David Richards > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/920cd937/attachment-0001.html From rubyamf-discussion at rubyforge.org Wed Oct 3 08:30:30 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 08:30:30 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: Message-ID: > Rails 2.0 is not officially supported yet. And those screencasts > are very old. Ok so it's for this reason i have this error ? I use now the plugin in trunk directorie thanks Arron > > Here is the official rails installer: > http://blog.rubyamf.org/?p=34 > > -Aaron > > > > > On 10/2/07, RubyAMF wrote: > hello all, > > > i am tring to create my first application with RubyAmf, I watche also > the video "Rails_introduction". > > When i launch the url http://localhost:3000/rubyamf/gateway > > I have this error. we can use ruamf with rail 2.0 > > thanks guys > > undefined method `render_text' for # > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/util/action_controller.rb:39:in `render' > /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ > rubyamf_controller.rb:78:in `gateway' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1104:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1104:in > `perform_action_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:695:in `call_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:687:in > `perform_action_without_benchmark' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/rescue.rb:175:in > `perform_action_without_caching' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:665:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/connection_adapters/abstract/ > query_cache.rb:33:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/query_cache.rb:8:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:664:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in > `process_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:683:in > `process_without_session_management_support' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/session_management.rb:122:in > `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:372:in `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 78:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails:243 > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/server.rb:39 > script/server:3:in `require' > script/server:3 > /rubyamf/gateway/render_action > undefined method `render_file' for # > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/util/action_controller.rb:17:in `render' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1105:in > `perform_action_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:695:in `call_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:687:in > `perform_action_without_benchmark' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/rescue.rb:175:in > `perform_action_without_caching' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:665:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/connection_adapters/abstract/ > query_cache.rb:33:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/query_cache.rb:8:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:664:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in > `process_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:683:in > `process_without_session_management_support' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/session_management.rb:122:in > `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:372:in `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 78:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails:243 > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/server.rb:39 > script/server:3:in `require' > script/server:3 > RubyamfController: missing default helper path rubyamf_helper > > > Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-02 > 15:06:01) [GET] > Session ID: > BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo% > 0ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZl% > 0AYzg4MDQxMmM3ZDE3OTU%3D--f9c9824ca30cdd70ecf6614a95ded259fdd069d1 > Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/410fad29/attachment-0001.html From rubyamf-discussion at rubyforge.org Wed Oct 3 09:25:44 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 09:25:44 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: Message-ID: <5D9EE55C-5088-4B0A-8BD3-F3C450C1C61D@gmail.com> Ok for the moment i found the solution, i replace all render_ by render_for_ in action_coller.rb Le 2 oct. 07 ? 16:57, RubyAMF a ?crit : > Rails 2.0 is not officially supported yet. And those screencasts > are very old. > > Here is the official rails installer: > http://blog.rubyamf.org/?p=34 > > -Aaron > > > > > On 10/2/07, RubyAMF wrote: > hello all, > > > i am tring to create my first application with RubyAmf, I watche also > the video "Rails_introduction". > > When i launch the url http://localhost:3000/rubyamf/gateway > > I have this error. we can use ruamf with rail 2.0 > > thanks guys > > undefined method `render_text' for # > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/util/action_controller.rb:39:in `render' > /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ > rubyamf_controller.rb:78:in `gateway' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1104:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1104:in > `perform_action_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:695:in `call_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:687:in > `perform_action_without_benchmark' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/rescue.rb:175:in > `perform_action_without_caching' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:665:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/connection_adapters/abstract/ > query_cache.rb:33:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/query_cache.rb:8:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:664:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in > `process_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:683:in > `process_without_session_management_support' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/session_management.rb:122:in > `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:372:in `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 78:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails:243 > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/server.rb:39 > script/server:3:in `require' > script/server:3 > /rubyamf/gateway/render_action > undefined method `render_file' for # > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/util/action_controller.rb:17:in `render' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1105:in > `perform_action_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:695:in `call_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:687:in > `perform_action_without_benchmark' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/rescue.rb:175:in > `perform_action_without_caching' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:665:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/connection_adapters/abstract/ > query_cache.rb:33:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/query_cache.rb:8:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:664:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in > `process_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:683:in > `process_without_session_management_support' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/session_management.rb:122:in > `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:372:in `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 78:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails:243 > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/server.rb:39 > script/server:3:in `require' > script/server:3 > RubyamfController: missing default helper path rubyamf_helper > > > Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-02 > 15:06:01) [GET] > Session ID: > BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo% > 0ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZl% > 0AYzg4MDQxMmM3ZDE3OTU%3D--f9c9824ca30cdd70ecf6614a95ded259fdd069d1 > Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/2c9a1e7e/attachment-0001.html From rubyamf-discussion at rubyforge.org Wed Oct 3 11:49:01 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 08:49:01 -0700 Subject: [RubyAMF] first application , big trouble In-Reply-To: <5D9EE55C-5088-4B0A-8BD3-F3C450C1C61D@gmail.com> References: <5D9EE55C-5088-4B0A-8BD3-F3C450C1C61D@gmail.com> Message-ID: Great thanks, you may have just figured out all that needs to be done for rails 2 support. -Aaron On 10/3/07, RubyAMF wrote: > > Ok for the moment i found the solution, i replace allrender_ > by > render_for_ > > in action_coller.rb > > Le 2 oct. 07 ? 16:57, RubyAMF a ?crit : > > Rails 2.0 is not officially supported yet. And those screencasts are very > old. > > Here is the official rails installer: > http://blog.rubyamf.org/?p=34 > > -Aaron > > > > > On 10/2/07, RubyAMF wrote: > > > > hello all, > > > > > > i am tring to create my first application with RubyAmf, I watche also > > the video "Rails_introduction". > > > > When i launch the url http://localhost:3000/rubyamf/gateway > > > > I have this error. we can use ruamf with rail 2.0 > > > > thanks guys > > > > undefined method `render_text' for # > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > > rubyamf/rubyamf_core/util/action_controller.rb:39:in `render' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ > > rubyamf_controller.rb:78:in `gateway' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/base.rb:1104:in `send' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/base.rb:1104:in > > `perform_action_without_filters' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/filters.rb:695:in `call_filters' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/filters.rb:687:in > > `perform_action_without_benchmark' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/benchmarking.rb:68:in > > `perform_action_without_rescue' > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/benchmarking.rb:68:in > > `perform_action_without_rescue' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/rescue.rb:175:in > > `perform_action_without_caching' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/caching.rb:665:in `perform_action' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activerecord/lib/active_record/connection_adapters/abstract/ > > query_cache.rb:33:in `cache' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activerecord/lib/active_record/query_cache.rb:8:in `cache' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/caching.rb:664:in `perform_action' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/base.rb:512:in `send' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/base.rb:512:in > > `process_without_filters' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/filters.rb:683:in > > `process_without_session_management_support' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/session_management.rb:122:in `process' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/base.rb:372:in `process' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > > 78:in `process' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > > 76:in `synchronize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > > 76:in `process' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:618:in > > `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > `each' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > > `new' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > `new' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > > configurator.rb:271:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > > configurator.rb:270:in `each' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > > configurator.rb:270:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > > 127:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > > command.rb:211:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails:243 > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:489:in `load' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:489:in `load' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:342:in > > `new_constants_in' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:489:in `load' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > railties/lib/commands/servers/mongrel.rb:64 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:496:in `require' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:342:in > > `new_constants_in' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:496:in `require' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > railties/lib/commands/server.rb:39 > > script/server:3:in `require' > > script/server:3 > > /rubyamf/gateway/render_action > > undefined method `render_file' for # > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > > rubyamf/rubyamf_core/util/action_controller.rb:17:in `render' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/base.rb:1105:in > > `perform_action_without_filters' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/filters.rb:695:in `call_filters' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/filters.rb:687:in > > `perform_action_without_benchmark' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/benchmarking.rb:68:in > > `perform_action_without_rescue' > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/benchmarking.rb:68:in > > `perform_action_without_rescue' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/rescue.rb:175:in > > `perform_action_without_caching' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/caching.rb:665:in `perform_action' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activerecord/lib/active_record/connection_adapters/abstract/ > > query_cache.rb:33:in `cache' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activerecord/lib/active_record/query_cache.rb:8:in `cache' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/caching.rb:664:in `perform_action' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/base.rb:512:in `send' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/base.rb:512:in > > `process_without_filters' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/filters.rb:683:in > > `process_without_session_management_support' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/session_management.rb:122:in `process' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/base.rb:372:in `process' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > > 78:in `process' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > > 76:in `synchronize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > > 76:in `process' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:618:in > > `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > `each' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > > `new' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > `new' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > > configurator.rb:271:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > > configurator.rb:270:in `each' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > > configurator.rb:270:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > > 127:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > > command.rb:211:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails:243 > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:489:in `load' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:489:in `load' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:342:in > > `new_constants_in' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:489:in `load' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > railties/lib/commands/servers/mongrel.rb:64 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:496:in `require' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:342:in > > `new_constants_in' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > activesupport/lib/active_support/dependencies.rb:496:in `require' > > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > > railties/lib/commands/server.rb:39 > > script/server:3:in `require' > > script/server:3 > > RubyamfController: missing default helper path rubyamf_helper > > > > > > Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-02 > > 15:06:01) [GET] > > Session ID: > > BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo% > > 0ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZl% > > 0AYzg4MDQxMmM3ZDE3OTU%3D--f9c9824ca30cdd70ecf6614a95ded259fdd069d1 > > Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/8f86b99b/attachment-0001.html From rubyamf-discussion at rubyforge.org Wed Oct 3 12:01:08 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 09:01:08 -0700 Subject: [RubyAMF] Getting Started In-Reply-To: <6D36301D-123E-451C-82F1-0DC21E0AB45D@showcase60.com> References: <20071003003247.517ae477.seth@4thtemple.com> <880C88B0-A0B6-4D04-885A-8ADBD0FF50D9@showcase60.com> <6D36301D-123E-451C-82F1-0DC21E0AB45D@showcase60.com> Message-ID: Glad I could help. Anything you can write / blog about / screencast is always helpful. As far as being a developer, if you know ruby and rails, read the rubyamf source code - then make some fixes / changes and submit some patches. As far as standardizing goes. I think thats come a long way with cairngorm, and using something like RubyAMF with Cairngorm just makes the job of the programmer even easier - because rails does a lot for you. As far as wether or not people should or shouldnt use rubyamf is completely up to you. But it does make a lot of server side development fast, because of rails. I haven't used RSpec with RubyAMF, there is a way you can unit test the de/serializers. it's documented in those files. Check out this tutorial - http://www.sephiroth.it/tutorials/flashPHP/flex_remoteobject/. This is an amfphp 1.9 tutorial that uses remoteObject. Take those concepts, but apply the concepts from amfphp to rubyamf. thanks for the support, anything helps. -Aaron On 10/3/07, RubyAMF wrote: > > This is great. Thank you. It actually helped to get it all out on one > page, and see that there were a lot of fuzzy things that I couldn't quite > know for sure. It seems those fuzzy things are exactly what you addressed, > especially with the VOs. > What I'll do is get cracking in the morning on this. I've got about 60 or > 70 models that need to have services defined for them in three different > applications. That should get my feet wet enough to be able to write some > really decent articles on the subject. > > As far as I can see, Flex is really begging for a standardized approach to > development. With the kind of constrained approaches RubyAMF and Cairngorm > seem to offer, this may be possible. Then, there can be a community idea > like the Flex Way that just gets it done quickly. > > My next step to really mastering this world of remote services is to write > up a series of RSpec tests for RubyAMF. I tried to get started on that last > night, but just didn't know enough about the package to even know what it > should do. That kind of work always helps me get focused and build > momentum. Of course, I'd be happy to submit those to the group, if you'd > like to use them. If I can get through those stages of things, I'd be happy > to be one of the developers you were asking for on this project. I don't > have a lot of time, but I can see that this project offers strategic > advantages for my Rails projects, and I want to ensure its success. > > Anyway, thank you again for the clarification. > > David > > > > > On Oct 3, 2007, at 12:30 AM, RubyAMF wrote: > > One other thing about this one: > > * Even though there are some config files for VOs with this install, > I can ignore those. > > Yes you can ignore the configuration files - however if you want to send > VO's back and forth with RubyAMF, then you MUST be registering value objects > in the configuration so that rubyamf can handle incoming and outgoing VO's. > > -Aaron > > > On 10/2/07, Aaron Smith wrote: > > > > Hello, in response to your questions.. > > > > * To get going, I can do something as simple as install rubyamf as a > > plugin in my rails app. This will setup the rubyamf_controller, and > > a few other things. > > > > Yep. > > > > * Even though there are some config files for VOs with this install, > > I can ignore those. > > > > Yep. > > > > * In a Rails instance, the gateway is simply going to be at /rubyamf/ > > gateway > > > > Yep > > > > *However I'm going to organize my services and events, I've got to > > set them up. So, I could define things with a Cairngorm > > architecture, but it's got to have a remoting service that can handle > > the rpc calls. > > > > Yes, anyway you want to organize your flex app doesn't matter, as > > RemoteObject is just the part that does the RPC communication. So when using > > cairngorm, a RemoteObject is within the ServiceLocator scope. Make sense? > > > > * The Rails w/ a rubyamf plugin knows things like respond_to :amf to > > allow me to send back ActiveRecord. So, I can simply: format.amf > > { render :amf => content }, WHERE CONTENT IS AN ARRAY OF ACTIVERECORD > > OBJECTS (right?). This sends the data back in a RecordSet. If I > > want to just send the data back, I can send it as my_model.single! > > and get the job done. > > > > Yes, anything you give to the render :amf method will render amf. > > Strings, Arrays, numbers, openstructs, etc. Generally in rails' controllers > > you'll only be sending back active record instances. For example returning a > > " User.find(1)" value object. single! and as_single! return the object > > back to your result, instead of being wrapped in an array. So {} VS [{}]. > > Make sense? > > > > * The Rails filters can be used, like with other controller methods > > > > Short answer, yes. Have I tested every filter type? no. I've tested > > basic filter types, before, append, prepend, etc. > > > > *It seems there are some helpers, like OnFault. Actually > > implementing these is a mystery to me so far. > > > > Refer to this posting: http://blog.rubyamf.org/?p=12 - that should help > > clarify why FaultObject is nice. > > > > * There seems to be some extra work determining which RecordSets are > > expected, but not with Flex stuff. Those will all use AMF3 > > automatically. > > > > This limitation has been removed. Setting the recordset_format is no > > longer needed. Note it was never needed if you use RemoteObject. > > > > * It seems I need to manually create a VO on the client side that > > describes the attributes of my ActiveRecord object. I can then take > > the object sent back from the service and assign it to this VO. As > > far as I've seen, there is no automatic way to translate a service's > > onResult response into an expected model as well. > > > > This is the way VO is handled for any remoting service. If you return an > > a active record from Rails that has a VO definition in the configuration, > > you will get an instance of that VO on the client side. So if you have a VO > > def like so: ValueObjects.register({:incoming => 'User', :map_to => > > 'User', :outgoing => 'User', :type => 'active_record'}). And you returned an > > instance of 'User' from your rails controller. You would get an instance of > > 'User' in your onResult handler. This is assuming of course you've got a > > User VO defined in Flex, and also a dummy VO has been created somewhere in > > application instantiation so that the class actually gets compiled into the > > player. I can expand on the "dummy" instantiation a little more if needed. > > > > * There are no significant changes between Flex2 and Flex3 that I > > need to change so far, right? There are some more minor things but > > they should not effect the way we integrate with RubyAMF. > > > > Works fine with Flex 3 > > > > *All this is an alternative to a WebOrb approach, which also uses > > RPC services, but leaves the work of serializing/deserializing to the > > developer. The net effect is that the bandwidth is a little higher, > > the client-side processing is a little higher, and the complexity is > > a little more involved with WebOrb vs. RubyAMF. > > > > Not sure what you mean by leaving the serializing/deserializing up to > > the developer. Actually RubyAMF has better/smarter support for > > serialization/deserialization. RubyAMF is still doing the de/serialization > > for you. And RubyAMF is 10x faster. > > > > > > Hope that helps. > > -Aaron > > > > > > > > > > On 10/2/07, RubyAMF < rubyamf-discussion at rubyforge.org > wrote: > > > > > > I've been Googling tonight, trying to get my head around the best way > > > to implement RubyAMF for Flex + Rails projects. There seems to be > > > some vague areas I can't seem to gleen from anywhere I know of. If > > > there are archives of this discussion group somewhere available, I'm > > > sure these answers are somewhere contained in past discussions. (By > > > the way, thanks for posting the clean wiki on port 2500 last night, > > > that really helped me see some of what we could do with RubyAMF). > > > > > > So, if it's all right, I'd like to state what I think I know and see > > > where I've missed the boat. This is full of assumptions, so if > > > anyone cares to check this list and make sure it's fairly clean, I'll > > > convert it into a much-better-written article that can be published > > > as a blog article or part of the wiki for others' consumption. > > > Probably a few well-written tutorials could go a long way, that I'd > > > be happy to write once I've connected the dots myself. Anyway, here > > > we go: > > > > > > * To get going, I can do something as simple as install rubyamf as a > > > plugin in my rails app. This will setup the rubyamf_controller, and > > > a few other things. > > > * Even though there are some config files for VOs with this install, > > > I can ignore those. > > > * In a Rails instance, the gateway is simply going to be at /rubyamf/ > > > gateway > > > * However I'm going to organize my services and events, I've got to > > > set them up. So, I could define things with a Cairngorm > > > architecture, but it's got to have a remoting service that can handle > > > the rpc calls. > > > * It seems that RemoteObject is the way to setup the service in this > > > case. So, I could setup my services.xml like we find in the > > > hello_world example from the wiki. The actual RemoteObject source is > > > the controller we're talking to. The destination is the name of the > > > service we're calling, as setup in the services.xml file. The > > > RemoteObject will have a method whose name is set to the controller > > > method being called. > > > * The Rails w/ a rubyamf plugin knows things like respond_to :amf to > > > allow me to send back ActiveRecord. So, I can simply: format.amf > > > { render :amf => content }, WHERE CONTENT IS AN ARRAY OF ACTIVERECORD > > > OBJECTS (right?). This sends the data back in a RecordSet. If I > > > want to just send the data back, I can send it as my_model.single! > > > and get the job done. > > > * It seems there are some helpers, like OnFault. Actually > > > implementing these is a mystery to me so far. > > > * The Rails filters can be used, like with other controller methods > > > * There seems to be some extra work determining which RecordSets are > > > expected, but not with Flex stuff. Those will all use AMF3 > > > automatically. > > > * It seems I need to manually create a VO on the client side that > > > describes the attributes of my ActiveRecord object. I can then take > > > the object sent back from the service and assign it to this VO. As > > > far as I've seen, there is no automatic way to translate a service's > > > onResult response into an expected model as well. > > > * There are no significant changes between Flex2 and Flex3 that I > > > need to change so far, right? There are some more minor things but > > > they should not effect the way we integrate with RubyAMF. > > > * All this is an alternative to a WebOrb approach, which also uses > > > RPC services, but leaves the work of serializing/deserializing to the > > > developer. The net effect is that the bandwidth is a little higher, > > > the client-side processing is a little higher, and the complexity is > > > a little more involved with WebOrb vs. RubyAMF. > > > > > > Am I missing anything here? Things are still a bit vague for me. > > > So, I'll sleep on these ideas, add to them any clarification I can > > > get from this post, and hopefully start experimenting in earnest in > > > the morning. > > > > > > Warm regards, > > > > > > David Richards > > > > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/6efeb942/attachment.html From rubyamf-discussion at rubyforge.org Wed Oct 3 12:38:16 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 11:38:16 -0500 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: <5D9EE55C-5088-4B0A-8BD3-F3C450C1C61D@gmail.com> Message-ID: <8FD0F4A0-E99B-49CF-9270-3C83F1640E7A@grimmwerks.com> Hey Aaron are you still in Chicago? Been trying to track you down On Oct 3, 2007, at 10:49 AM, RubyAMF wrote: > Great thanks, you may have just figured out all that needs to be > done for rails 2 support. > -Aaron > > > > On 10/3/07, RubyAMF < rubyamf-discussion at rubyforge.org> wrote: > Ok for the moment i found the solution, i replace all > render_ > by > render_for_ > > in action_coller.rb > > Le 2 oct. 07 ? 16:57, RubyAMF a ?crit : > >> Rails 2.0 is not officially supported yet. And those screencasts >> are very old. >> >> Here is the official rails installer: >> http://blog.rubyamf.org/?p=34 >> >> -Aaron >> >> >> >> >> On 10/2/07, RubyAMF < rubyamf-discussion at rubyforge.org> wrote: >> hello all, >> >> >> i am tring to create my first application with RubyAmf, I watche also >> the video "Rails_introduction". >> >> When i launch the url http://localhost:3000/rubyamf/gateway >> >> I have this error. we can use ruamf with rail 2.0 >> >> thanks guys >> >> undefined method `render_text' for # >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ >> rubyamf/rubyamf_core/util/action_controller.rb:39:in `render' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ >> rubyamf_controller.rb:78:in `gateway' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:1104:in `send' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:1104:in >> `perform_action_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:695:in `call_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:687:in >> `perform_action_without_benchmark' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/rescue.rb:175:in >> `perform_action_without_caching' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:665:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/connection_adapters/abstract/ >> query_cache.rb:33:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/query_cache.rb:8:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:664:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in `send' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in >> `process_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:683:in >> `process_without_session_management_support' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/session_management.rb:122:in >> `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:372:in `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:165:in >> `handle_request' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 78:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `synchronize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 618:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 736:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:271:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >> 127:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> command.rb:211:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails: >> 243 >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/servers/mongrel.rb:64 >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require' >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/server.rb:39 >> script/server:3:in `require' >> script/server:3 >> /rubyamf/gateway/render_action >> undefined method `render_file' for # >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ >> rubyamf/rubyamf_core/util/action_controller.rb:17:in `render' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:1105:in >> `perform_action_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:695:in `call_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:687:in >> `perform_action_without_benchmark' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/rescue.rb:175:in >> `perform_action_without_caching' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:665:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/connection_adapters/abstract/ >> query_cache.rb:33:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/query_cache.rb:8:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:664:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in `send' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in >> `process_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:683:in >> `process_without_session_management_support' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/session_management.rb:122:in >> `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:372:in `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:165:in >> `handle_request' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 78:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `synchronize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 618:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 736:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:271:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >> 127:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> command.rb:211:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails: >> 243 >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/servers/mongrel.rb:64 >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require' >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/server.rb:39 >> script/server:3:in `require' >> script/server:3 >> RubyamfController: missing default helper path rubyamf_helper >> >> >> Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-02 >> 15:06:01) [GET] >> Session ID: >> BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo% >> 0ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZl% >> 0AYzg4MDQxMmM3ZDE3OTU%3D--f9c9824ca30cdd70ecf6614a95ded259fdd069d1 >> Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion >> >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > @rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/94d046d2/attachment-0001.html From rubyamf-discussion at rubyforge.org Wed Oct 3 12:50:44 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 11:50:44 -0500 Subject: [RubyAMF] first application , big trouble In-Reply-To: <8FD0F4A0-E99B-49CF-9270-3C83F1640E7A@grimmwerks.com> References: <5D9EE55C-5088-4B0A-8BD3-F3C450C1C61D@gmail.com> <8FD0F4A0-E99B-49CF-9270-3C83F1640E7A@grimmwerks.com> Message-ID: <413B1187-74C3-4BE5-9B93-7CC21671C9B1@gmail.com> No sorry I actually just left. The box said requires Windows XP or greater. So I got a Mac. On Oct 3, 2007, at 11:38 AM, RubyAMF wrote: > Hey Aaron are you still in Chicago? Been trying to track you down > > On Oct 3, 2007, at 10:49 AM, RubyAMF discussion at rubyforge.org> wrote: > >> Great thanks, you may have just figured out all that needs to be >> done for rails 2 support. >> -Aaron >> >> >> >> On 10/3/07, RubyAMF < rubyamf-discussion at rubyforge.org> wrote: >> Ok for the moment i found the solution, i replace all >> render_ >> by >> render_for_ >> >> in action_coller.rb >> >> Le 2 oct. 07 ? 16:57, RubyAMF a ?crit : >> >>> Rails 2.0 is not officially supported yet. And those screencasts >>> are very old. >>> >>> Here is the official rails installer: >>> http://blog.rubyamf.org/?p=34 >>> >>> -Aaron >>> >>> >>> >>> >>> On 10/2/07, RubyAMF < rubyamf-discussion at rubyforge.org> wrote: >>> hello all, >>> >>> >>> i am tring to create my first application with RubyAmf, I watche >>> also >>> the video "Rails_introduction". >>> >>> When i launch the url http://localhost:3000/rubyamf/gateway >>> >>> I have this error. we can use ruamf with rail 2.0 >>> >>> thanks guys >>> >>> undefined method `render_text' for # >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ >>> rubyamf/rubyamf_core/util/action_controller.rb:39:in `render' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ >>> rubyamf_controller.rb:78:in `gateway' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:1104:in `send' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:1104:in >>> `perform_action_without_filters' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/filters.rb:695:in `call_filters' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/filters.rb:687:in >>> `perform_action_without_benchmark' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/benchmarking.rb:68:in >>> `perform_action_without_rescue' >>> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/benchmarking.rb:68:in >>> `perform_action_without_rescue' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/rescue.rb:175:in >>> `perform_action_without_caching' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/caching.rb:665:in `perform_action' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activerecord/lib/active_record/connection_adapters/abstract/ >>> query_cache.rb:33:in `cache' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activerecord/lib/active_record/query_cache.rb:8:in `cache' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/caching.rb:664:in `perform_action' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:512:in `send' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:512:in >>> `process_without_filters' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/filters.rb:683:in >>> `process_without_session_management_support' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/session_management.rb:122:in >>> `process' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:372:in `process' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:165:in >>> `handle_request' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> rails.rb: >>> 78:in `process' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> rails.rb: >>> 76:in `synchronize' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> rails.rb: >>> 76:in `process' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >>> 618:in >>> `process_client' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 617:in >>> `each' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 617:in >>> `process_client' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 736:in >>> `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 736:in >>> `initialize' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >>> 736:in >>> `new' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 736:in >>> `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 720:in >>> `initialize' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 720:in >>> `new' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 720:in >>> `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> configurator.rb:271:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> configurator.rb:270:in `each' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> configurator.rb:270:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >>> 127:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> command.rb:211:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails: >>> 243 >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:489:in `load' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:489:in `load' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:342:in >>> `new_constants_in' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:489:in `load' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> railties/lib/commands/servers/mongrel.rb:64 >>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >>> `gem_original_require' >>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >>> `require' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:496:in `require' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:342:in >>> `new_constants_in' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:496:in `require' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> railties/lib/commands/server.rb:39 >>> script/server:3:in `require' >>> script/server:3 >>> /rubyamf/gateway/render_action >>> undefined method `render_file' for # >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ >>> rubyamf/rubyamf_core/util/action_controller.rb:17:in `render' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:1105:in >>> `perform_action_without_filters' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/filters.rb:695:in `call_filters' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/filters.rb:687:in >>> `perform_action_without_benchmark' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/benchmarking.rb:68:in >>> `perform_action_without_rescue' >>> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/benchmarking.rb:68:in >>> `perform_action_without_rescue' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/rescue.rb:175:in >>> `perform_action_without_caching' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/caching.rb:665:in `perform_action' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activerecord/lib/active_record/connection_adapters/abstract/ >>> query_cache.rb:33:in `cache' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activerecord/lib/active_record/query_cache.rb:8:in `cache' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/caching.rb:664:in `perform_action' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:512:in `send' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:512:in >>> `process_without_filters' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/filters.rb:683:in >>> `process_without_session_management_support' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/session_management.rb:122:in >>> `process' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:372:in `process' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:165:in >>> `handle_request' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> rails.rb: >>> 78:in `process' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> rails.rb: >>> 76:in `synchronize' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> rails.rb: >>> 76:in `process' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >>> 618:in >>> `process_client' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 617:in >>> `each' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 617:in >>> `process_client' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 736:in >>> `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 736:in >>> `initialize' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >>> 736:in >>> `new' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 736:in >>> `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 720:in >>> `initialize' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 720:in >>> `new' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 720:in >>> `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> configurator.rb:271:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> configurator.rb:270:in `each' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> configurator.rb:270:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >>> 127:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> command.rb:211:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails: >>> 243 >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:489:in `load' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:489:in `load' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:342:in >>> `new_constants_in' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:489:in `load' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> railties/lib/commands/servers/mongrel.rb:64 >>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >>> `gem_original_require' >>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >>> `require' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:496:in `require' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:342:in >>> `new_constants_in' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:496:in `require' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> railties/lib/commands/server.rb:39 >>> script/server:3:in `require' >>> script/server:3 >>> RubyamfController: missing default helper path rubyamf_helper >>> >>> >>> Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-02 >>> 15:06:01) [GET] >>> Session ID: >>> BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo% >>> 0ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZl% >>> 0AYzg4MDQxMmM3ZDE3OTU%3D--f9c9824ca30cdd70ecf6614a95ded259fdd069d1 >>> Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} >>> _______________________________________________ >>> Rubyamf-discussion mailing list >>> Rubyamf-discussion at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rubyamf-discussion >>> >>> _______________________________________________ >>> Rubyamf-discussion mailing list >>> Rubyamf-discussion at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rubyamf-discussion >> >> >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion >> >> >> @rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion >> >> >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/8bb49f22/attachment-0001.html From rubyamf-discussion at rubyforge.org Wed Oct 3 15:16:36 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 15:16:36 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: Message-ID: <2D81BC8E-FF22-4D4E-A58D-70334D13E198@gmail.com> Hello, still always me when i call the service hello_word, i have an error. it's because i use 2.0 ? You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[] /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ rubyamf/rubyamf_core/io/read_write.rb:48:in `read_int8' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ rubyamf/rubyamf_core/io/amf_deserializer.rb:60:in `preamble' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ rubyamf/rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ rubyamf/rubyamf_core/app/filters.rb:24:in `run' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ rubyamf/rubyamf_core/app/filters.rb:16:in `run' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ rubyamf/rubyamf_core/app/filters.rb:15:in `each' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ rubyamf/rubyamf_core/app/filters.rb:15:in `run' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ rubyamf/rubyamf_core/app/gateway.rb:49:in `service' /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ rubyamf_controller.rb:73:in `gateway' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/base.rb:1104:in `send' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/base.rb:1104:in `perform_action_without_filters' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/filters.rb:695:in `call_filters' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/filters.rb:687:in `perform_action_without_benchmark' /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' my controller class PagesController < ApplicationController def hello_word respond_to do |format| format.amf { render :amf => "Hello from AMF " } format.html { render :text => "Hello from HTM "} end end end my mxml -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/59b88fbd/attachment.html From rubyamf-discussion at rubyforge.org Wed Oct 3 15:39:58 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 14:39:58 -0500 Subject: [RubyAMF] first application , big trouble In-Reply-To: <2D81BC8E-FF22-4D4E-A58D-70334D13E198@gmail.com> References: <2D81BC8E-FF22-4D4E-A58D-70334D13E198@gmail.com> Message-ID: <6A938D80-77EA-4023-AC91-2DBA4EF26256@gmail.com> Rubyamf has not been tested with rails 2. I can't tell if its specifically because of rails 2. I'd say use rails 1.2.x Rails 2 support will be added by the time rails 2 is official. On Oct 3, 2007, at 2:16 PM, RubyAMF wrote: > Hello, > > still always me when i call the service hello_word, i have an error. > it's because i use 2.0 ? > > You have a nil object when you didn't expect it! > You might have expected an instance of ActiveRecord::Base. > The error occurred while evaluating nil.[] > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/io/read_write.rb:48:in `read_int8' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/io/amf_deserializer.rb:60:in `preamble' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/app/filters.rb:24:in `run' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/app/filters.rb:16:in `run' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/app/filters.rb:15:in `each' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/app/filters.rb:15:in `run' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/app/gateway.rb:49:in `service' > /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ > rubyamf_controller.rb:73:in `gateway' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1104:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1104:in > `perform_action_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:695:in `call_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:687:in > `perform_action_without_benchmark' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > my controller > > class PagesController < ApplicationController > > def hello_word > respond_to do |format| > format.amf { render :amf => "Hello from AMF " } > format.html { render :text => "Hello from HTM "} > end > end > > end > > > my mxml > > > layout="absolute"> > > import org.rubyamf.remoting.ssr.*; > private var rs:RemotingService; > > private function init():void > { > message.text= "Remoting Service called"; > rs = new RemotingService("http://localhost:3000/rubyamf/ > gateway","PagesController"); > rs.hello_word([],onResult,onFault); > > } > > private function onResult(re:ResultEvent):void > { > message.text= "onResult"; > message.text += re.result.toString(); > } > > private function onFault(re:FaultEvent):void > { > message.text= "onFault"; > message.text += re.fault.faultString; > } > ]]> > > > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/3095f43a/attachment.html From rubyamf-discussion at rubyforge.org Wed Oct 3 15:49:04 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 15:49:04 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: <6A938D80-77EA-4023-AC91-2DBA4EF26256@gmail.com> References: <2D81BC8E-FF22-4D4E-A58D-70334D13E198@gmail.com> <6A938D80-77EA-4023-AC91-2DBA4EF26256@gmail.com> Message-ID: <2A7C5578-6504-4826-BAF1-F3614C65D051@gmail.com> > Rubyamf has not been tested with rails 2. I can't tell if its > specifically because of rails 2. I'd say use rails 1.2.x > > Rails 2 support will be added by the time rails 2 is official. Yeah, arron said me that this morning. I didn't ask to fix my code for work with Rails 2.0. I am tring to do myself I would like just to know if my problem is form my code or because i use Edge From rubyamf-discussion at rubyforge.org Wed Oct 3 15:59:03 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 14:59:03 -0500 Subject: [RubyAMF] Don't use trunk from rubyamf. Message-ID: Don't use trunk from rubyamf. There isn't a concept of "edge." always use the latest release installer. Trunk is where development happens. Sometimes I'll put stuff inthere that is a work in progress. Look at the releases in /tags or use /tags/current/rubyamf. That always has the latest release. Aaron From rubyamf-discussion at rubyforge.org Wed Oct 3 16:06:08 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 15:06:08 -0500 Subject: [RubyAMF] first application , big trouble In-Reply-To: <2A7C5578-6504-4826-BAF1-F3614C65D051@gmail.com> References: <2D81BC8E-FF22-4D4E-A58D-70334D13E198@gmail.com> <6A938D80-77EA-4023-AC91-2DBA4EF26256@gmail.com> <2A7C5578-6504-4826-BAF1-F3614C65D051@gmail.com> Message-ID: Agh. Yeah your code is right. Its prob edge thats causing the problems. The box said requires Windows XP or greater. So I got a Mac. On Oct 3, 2007, at 2:49 PM, RubyAMF wrote: > > >> Rubyamf has not been tested with rails 2. I can't tell if its >> specifically because of rails 2. I'd say use rails 1.2.x >> >> Rails 2 support will be added by the time rails 2 is official. > > Yeah, arron said me that this morning. I didn't ask to fix my code > for work with Rails 2.0. I am tring to do myself > > I would like just to know if my problem is form my code or because i > use Edge > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion From rubyamf-discussion at rubyforge.org Wed Oct 3 16:06:59 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 16:06:59 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: Message-ID: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> Ok, I make a test with the last version (not the trunk version) with Rails 1.2 :) I have same error :( So where is my mistake ? thanks guys Le 2 oct. 07 ? 16:57, RubyAMF a ?crit : > Rails 2.0 is not officially supported yet. And those screencasts > are very old. > > Here is the official rails installer: > http://blog.rubyamf.org/?p=34 > > -Aaron > > > > > On 10/2/07, RubyAMF wrote: > hello all, > > > i am tring to create my first application with RubyAmf, I watche also > the video "Rails_introduction". > > When i launch the url http://localhost:3000/rubyamf/gateway > > I have this error. we can use ruamf with rail 2.0 > > thanks guys > > undefined method `render_text' for # > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/util/action_controller.rb:39:in `render' > /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ > rubyamf_controller.rb:78:in `gateway' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1104:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1104:in > `perform_action_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:695:in `call_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:687:in > `perform_action_without_benchmark' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/rescue.rb:175:in > `perform_action_without_caching' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:665:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/connection_adapters/abstract/ > query_cache.rb:33:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/query_cache.rb:8:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:664:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in > `process_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:683:in > `process_without_session_management_support' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/session_management.rb:122:in > `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:372:in `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 78:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails:243 > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/server.rb:39 > script/server:3:in `require' > script/server:3 > /rubyamf/gateway/render_action > undefined method `render_file' for # > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/util/action_controller.rb:17:in `render' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1105:in > `perform_action_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:695:in `call_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:687:in > `perform_action_without_benchmark' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/rescue.rb:175:in > `perform_action_without_caching' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:665:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/connection_adapters/abstract/ > query_cache.rb:33:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/query_cache.rb:8:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:664:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in > `process_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:683:in > `process_without_session_management_support' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/session_management.rb:122:in > `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:372:in `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 78:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails:243 > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/server.rb:39 > script/server:3:in `require' > script/server:3 > RubyamfController: missing default helper path rubyamf_helper > > > Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-02 > 15:06:01) [GET] > Session ID: > BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo% > 0ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZl% > 0AYzg4MDQxMmM3ZDE3OTU%3D--f9c9824ca30cdd70ecf6614a95ded259fdd069d1 > Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/225b6616/attachment-0001.html From rubyamf-discussion at rubyforge.org Wed Oct 3 16:13:22 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 15:13:22 -0500 Subject: [RubyAMF] first application , big trouble In-Reply-To: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> Message-ID: <8F4B079A-75D6-4248-8D89-D14284C8D02B@gmail.com> Make sure you install rubyamf from /tags/current/rubyamf. What errors are you getting? Make sure you didnt modify the rubyamf controller. I saw the other error of render_text not being a method, but that wasn't ever in the rubyamf controller. Sorry I'm not at a computer right now so it might have to wait until tomorrow. On Oct 3, 2007, at 3:06 PM, RubyAMF wrote: > Ok, I make a test with > > the last version (not the trunk version) with Rails 1.2 :) > > I have same error :( So where is my mistake ? > > thanks guys > Le 2 oct. 07 ? 16:57, RubyAMF a ?crit : > >> Rails 2.0 is not officially supported yet. And those screencasts >> are very old. >> >> Here is the official rails installer: >> http://blog.rubyamf.org/?p=34 >> >> -Aaron >> >> >> >> >> On 10/2/07, RubyAMF wrote: >> hello all, >> >> >> i am tring to create my first application with RubyAmf, I watche also >> the video "Rails_introduction". >> >> When i launch the url http://localhost:3000/rubyamf/gateway >> >> I have this error. we can use ruamf with rail 2.0 >> >> thanks guys >> >> undefined method `render_text' for # >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ >> rubyamf/rubyamf_core/util/action_controller.rb:39:in `render' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ >> rubyamf_controller.rb:78:in `gateway' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:1104:in `send' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:1104:in >> `perform_action_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:695:in `call_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:687:in >> `perform_action_without_benchmark' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/rescue.rb:175:in >> `perform_action_without_caching' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:665:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/connection_adapters/abstract/ >> query_cache.rb:33:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/query_cache.rb:8:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:664:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in `send' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in >> `process_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:683:in >> `process_without_session_management_support' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/session_management.rb:122:in >> `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:372:in `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:165:in >> `handle_request' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 78:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `synchronize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 618:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 736:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:271:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >> 127:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> command.rb:211:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails: >> 243 >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/servers/mongrel.rb:64 >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require' >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/server.rb:39 >> script/server:3:in `require' >> script/server:3 >> /rubyamf/gateway/render_action >> undefined method `render_file' for # >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ >> rubyamf/rubyamf_core/util/action_controller.rb:17:in `render' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:1105:in >> `perform_action_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:695:in `call_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:687:in >> `perform_action_without_benchmark' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/rescue.rb:175:in >> `perform_action_without_caching' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:665:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/connection_adapters/abstract/ >> query_cache.rb:33:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/query_cache.rb:8:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:664:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in `send' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in >> `process_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:683:in >> `process_without_session_management_support' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/session_management.rb:122:in >> `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:372:in `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:165:in >> `handle_request' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 78:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `synchronize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 618:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 736:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:271:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >> 127:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> command.rb:211:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails: >> 243 >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/servers/mongrel.rb:64 >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require' >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/server.rb:39 >> script/server:3:in `require' >> script/server:3 >> RubyamfController: missing default helper path rubyamf_helper >> >> >> Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-02 >> 15:06:01) [GET] >> Session ID: >> BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo% >> 0ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZl% >> 0AYzg4MDQxMmM3ZDE3OTU%3D--f9c9824ca30cdd70ecf6614a95ded259fdd069d1 >> Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion >> >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/dc06b72e/attachment-0001.html From rubyamf-discussion at rubyforge.org Wed Oct 3 16:19:28 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 16:19:28 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: <8F4B079A-75D6-4248-8D89-D14284C8D02B@gmail.com> References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <8F4B079A-75D6-4248-8D89-D14284C8D02B@gmail.com> Message-ID: <886E3FAB-240A-4413-85E9-4D9F9D4A1BFC@gmail.com> Le 3 oct. 07 ? 16:13, RubyAMF a ?crit : > Make sure you install rubyamf from /tags/current/rubyamf. yes 2 times with this command $ ruby script/plugin install svn://rubyforge.org/var/svn/rubyamf/tags/ current/rubyamf --force > What errors are you getting? i have this strange error You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[] /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/io/read_write.rb:48:in `read_int8' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/io/amf_deserializer.rb:60:in `preamble' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/app/filters.rb:24:in `run' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/app/filters.rb:16:in `run' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/app/filters.rb:15:in `each' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/app/filters.rb:15:in `run' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/app/gateway.rb:49:in `service' /Users/bmichelin/Documents/Coding-Dev/test/app/controllers/ rubyamf_controller.rb:73:in `gateway' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:1104:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:1104:in `perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/filters.rb:695:in `call_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/filters.rb:687:in `perform_action_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/rescue.rb:175:in `perform_action_without_caching' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/caching.rb:665:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ active_record/connection_adapters/abstract/query_cache.rb:33:in `cache' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ active_record/query_cache.rb:8:in `cache' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/caching.rb:664:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:512:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:512:in `process_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/filters.rb:683:in `process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/session_management.rb:122:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:372:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:165:in `handle_request' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:114:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:125:in `dispatch_cgi' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:9:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 78:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 76:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 76:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:271:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: 127:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ command.rb:211:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:489:in `load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:489:in `load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:342:in `new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:489:in `load' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ servers/mongrel.rb:64 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:496:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:342:in `new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:496:in `require' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ server.rb:39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' script/server:3 /rubyamf/gateway/render_action Missing template rubyamf/gateway.html.erb in view path /Users/ bmichelin/Documents/Coding-Dev/test/app/views /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:1215:in `assert_existence_of_template_file' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:1048:in `render_for_file' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/util/action_controller.rb:17:in `render' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:1105:in `perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/filters.rb:695:in `call_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/filters.rb:687:in `perform_action_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/rescue.rb:175:in `perform_action_without_caching' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/caching.rb:665:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ active_record/connection_adapters/abstract/query_cache.rb:33:in `cache' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ active_record/query_cache.rb:8:in `cache' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/caching.rb:664:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:512:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:512:in `process_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/filters.rb:683:in `process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/session_management.rb:122:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:372:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:165:in `handle_request' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:114:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:125:in `dispatch_cgi' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:9:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 78:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 76:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 76:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:271:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: 127:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ command.rb:211:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:489:in `load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:489:in `load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:342:in `new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:489:in `load' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ servers/mongrel.rb:64 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:496:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:342:in `new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:496:in `require' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ server.rb:39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' script/server:3 RubyamfController: missing default helper path rubyamf_helper > Make sure you didnt modify the rubyamf controller. i don't touch this controller :) > I saw the other error of render_text not being a method, but that > wasn't ever in the rubyamf controller. this error is fix now, i was replaced all render_ by render_for_ inn action_coller.rb thanks Bolo > From rubyamf-discussion at rubyforge.org Wed Oct 3 16:23:22 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 14:23:22 -0600 Subject: [RubyAMF] first application , big trouble In-Reply-To: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> Message-ID: Maybe I should have elaborated. grep -lr render_text * in your app root should find the offending code. If you're not on a *nx machine, can you open the app in a text editor and do a find in all files? Anyway, probably there was just a typo somewhere. If you can't find it, zip it up and send it to me (drichards at showcase60 dot com) and I'll be happy to take a look. Cheers On Oct 3, 2007, at 2:06 PM, RubyAMF wrote: > Ok, I make a test with > > the last version (not the trunk version) with Rails 1.2 :) > > I have same error :( So where is my mistake ? > > thanks guys > Le 2 oct. 07 ? 16:57, RubyAMF a ?crit : > >> Rails 2.0 is not officially supported yet. And those screencasts >> are very old. >> >> Here is the official rails installer: >> http://blog.rubyamf.org/?p=34 >> >> -Aaron >> >> >> >> >> On 10/2/07, RubyAMF wrote: >> hello all, >> >> >> i am tring to create my first application with RubyAmf, I watche also >> the video "Rails_introduction". >> >> When i launch the url http://localhost:3000/rubyamf/gateway >> >> I have this error. we can use ruamf with rail 2.0 >> >> thanks guys >> >> undefined method `render_text' for # >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ >> rubyamf/rubyamf_core/util/action_controller.rb:39:in `render' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ >> rubyamf_controller.rb:78:in `gateway' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:1104:in `send' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:1104:in >> `perform_action_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:695:in `call_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:687:in >> `perform_action_without_benchmark' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/rescue.rb:175:in >> `perform_action_without_caching' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:665:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/connection_adapters/abstract/ >> query_cache.rb:33:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/query_cache.rb:8:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:664:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in `send' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in >> `process_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:683:in >> `process_without_session_management_support' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/session_management.rb:122:in >> `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:372:in `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:165:in >> `handle_request' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 78:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `synchronize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 618:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 736:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:271:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >> 127:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> command.rb:211:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails: >> 243 >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/servers/mongrel.rb:64 >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require' >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/server.rb:39 >> script/server:3:in `require' >> script/server:3 >> /rubyamf/gateway/render_action >> undefined method `render_file' for # >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ >> rubyamf/rubyamf_core/util/action_controller.rb:17:in `render' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:1105:in >> `perform_action_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:695:in `call_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:687:in >> `perform_action_without_benchmark' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/rescue.rb:175:in >> `perform_action_without_caching' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:665:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/connection_adapters/abstract/ >> query_cache.rb:33:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/query_cache.rb:8:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:664:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in `send' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in >> `process_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:683:in >> `process_without_session_management_support' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/session_management.rb:122:in >> `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:372:in `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:165:in >> `handle_request' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 78:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `synchronize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 618:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 736:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:271:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >> 127:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> command.rb:211:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails: >> 243 >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/servers/mongrel.rb:64 >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require' >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/server.rb:39 >> script/server:3:in `require' >> script/server:3 >> RubyamfController: missing default helper path rubyamf_helper >> >> >> Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-02 >> 15:06:01) [GET] >> Session ID: >> BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo% >> 0ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZl% >> 0AYzg4MDQxMmM3ZDE3OTU%3D--f9c9824ca30cdd70ecf6614a95ded259fdd069d1 >> Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion >> >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/011b8d55/attachment-0001.html From rubyamf-discussion at rubyforge.org Wed Oct 3 16:18:34 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 14:18:34 -0600 Subject: [RubyAMF] first application , big trouble In-Reply-To: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> Message-ID: Sorry, I wasn't paying attention earlier. You've got render_text, instead of render :text. That should be the difference. Cheers, David On Oct 3, 2007, at 2:06 PM, RubyAMF wrote: > Ok, I make a test with > > the last version (not the trunk version) with Rails 1.2 :) > > I have same error :( So where is my mistake ? > > thanks guys > Le 2 oct. 07 ? 16:57, RubyAMF a ?crit : > >> Rails 2.0 is not officially supported yet. And those screencasts >> are very old. >> >> Here is the official rails installer: >> http://blog.rubyamf.org/?p=34 >> >> -Aaron >> >> >> >> >> On 10/2/07, RubyAMF wrote: >> hello all, >> >> >> i am tring to create my first application with RubyAmf, I watche also >> the video "Rails_introduction". >> >> When i launch the url http://localhost:3000/rubyamf/gateway >> >> I have this error. we can use ruamf with rail 2.0 >> >> thanks guys >> >> undefined method `render_text' for # >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ >> rubyamf/rubyamf_core/util/action_controller.rb:39:in `render' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ >> rubyamf_controller.rb:78:in `gateway' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:1104:in `send' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:1104:in >> `perform_action_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:695:in `call_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:687:in >> `perform_action_without_benchmark' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/rescue.rb:175:in >> `perform_action_without_caching' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:665:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/connection_adapters/abstract/ >> query_cache.rb:33:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/query_cache.rb:8:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:664:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in `send' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in >> `process_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:683:in >> `process_without_session_management_support' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/session_management.rb:122:in >> `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:372:in `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:165:in >> `handle_request' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 78:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `synchronize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 618:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 736:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:271:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >> 127:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> command.rb:211:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails: >> 243 >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/servers/mongrel.rb:64 >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require' >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/server.rb:39 >> script/server:3:in `require' >> script/server:3 >> /rubyamf/gateway/render_action >> undefined method `render_file' for # >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ >> rubyamf/rubyamf_core/util/action_controller.rb:17:in `render' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:1105:in >> `perform_action_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:695:in `call_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:687:in >> `perform_action_without_benchmark' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/rescue.rb:175:in >> `perform_action_without_caching' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:665:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/connection_adapters/abstract/ >> query_cache.rb:33:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activerecord/lib/active_record/query_cache.rb:8:in `cache' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/caching.rb:664:in `perform_action' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in `send' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:512:in >> `process_without_filters' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/filters.rb:683:in >> `process_without_session_management_support' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/session_management.rb:122:in >> `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/base.rb:372:in `process' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:165:in >> `handle_request' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 78:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `synchronize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 618:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 736:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:271:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >> 127:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> command.rb:211:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails: >> 243 >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:489:in `load' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/servers/mongrel.rb:64 >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require' >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:342:in >> `new_constants_in' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> activesupport/lib/active_support/dependencies.rb:496:in `require' >> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >> railties/lib/commands/server.rb:39 >> script/server:3:in `require' >> script/server:3 >> RubyamfController: missing default helper path rubyamf_helper >> >> >> Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-02 >> 15:06:01) [GET] >> Session ID: >> BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo% >> 0ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZl% >> 0AYzg4MDQxMmM3ZDE3OTU%3D--f9c9824ca30cdd70ecf6614a95ded259fdd069d1 >> Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion >> >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/8afc498c/attachment-0001.html From rubyamf-discussion at rubyforge.org Wed Oct 3 16:30:30 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 16:30:30 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> Message-ID: <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> Hi guys > render_text problem is fixed. I was replaced all render_ by render_for_ in action_coller.rb Now i have a new error is this ** Use CTRL-C to stop. You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[] /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/io/read_write.rb:48:in `read_int8' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/io/amf_deserializer.rb:60:in `preamble' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/app/filters.rb:24:in `run' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/app/filters.rb:16:in `run' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/app/filters.rb:15:in `each' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/app/filters.rb:15:in `run' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/app/gateway.rb:49:in `service' /Users/bmichelin/Documents/Coding-Dev/test/app/controllers/ rubyamf_controller.rb:73:in `gateway' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:1104:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:1104:in `perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/filters.rb:695:in `call_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/filters.rb:687:in `perform_action_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/rescue.rb:175:in `perform_action_without_caching' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/caching.rb:665:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ active_record/connection_adapters/abstract/query_cache.rb:33:in `cache' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ active_record/query_cache.rb:8:in `cache' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/caching.rb:664:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:512:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:512:in `process_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/filters.rb:683:in `process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/session_management.rb:122:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:372:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:165:in `handle_request' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:114:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:125:in `dispatch_cgi' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:9:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 78:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 76:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 76:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:271:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: 127:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ command.rb:211:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:489:in `load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:489:in `load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:342:in `new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:489:in `load' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ servers/mongrel.rb:64 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:496:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:342:in `new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:496:in `require' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ server.rb:39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' script/server:3 /rubyamf/gateway/render_action Missing template rubyamf/gateway.html.erb in view path /Users/ bmichelin/Documents/Coding-Dev/test/app/views /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:1215:in `assert_existence_of_template_file' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:1048:in `render_for_file' /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ rubyamf_core/util/action_controller.rb:17:in `render' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:1105:in `perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/filters.rb:695:in `call_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/filters.rb:687:in `perform_action_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/rescue.rb:175:in `perform_action_without_caching' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/caching.rb:665:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ active_record/connection_adapters/abstract/query_cache.rb:33:in `cache' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ active_record/query_cache.rb:8:in `cache' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/caching.rb:664:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:512:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:512:in `process_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/filters.rb:683:in `process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/session_management.rb:122:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/base.rb:372:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:165:in `handle_request' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:114:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:125:in `dispatch_cgi' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ action_controller/dispatcher.rb:9:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 78:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 76:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: 76:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:271:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:270:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: 127:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ command.rb:211:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:489:in `load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:489:in `load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:342:in `new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:489:in `load' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ servers/mongrel.rb:64 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:496:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:342:in `new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ active_support/dependencies.rb:496:in `require' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ server.rb:39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' script/server:3 RubyamfController: missing default helper path rubyamf_helper From rubyamf-discussion at rubyforge.org Wed Oct 3 16:33:12 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 15:33:12 -0500 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> Message-ID: Sorry I'm away from a computer otherwise I'd totally help you out right now. See if you can hook up with David and get some help. If I don't hear that you figured it out I'll look into it either tonight or tomorrow night. On Oct 3, 2007, at 3:18 PM, RubyAMF wrote: > Sorry, I wasn't paying attention earlier. You've got render_text, > instead of render :text. That should be the difference. > > Cheers, > > David > > > On Oct 3, 2007, at 2:06 PM, RubyAMF wrote: > >> Ok, I make a test with >> >> the last version (not the trunk version) with Rails 1.2 :) >> >> I have same error :( So where is my mistake ? >> >> thanks guys >> Le 2 oct. 07 ? 16:57, RubyAMF a ?crit : >> >>> Rails 2.0 is not officially supported yet. And those screencasts >>> are very old. >>> >>> Here is the official rails installer: >>> http://blog.rubyamf.org/?p=34 >>> >>> -Aaron >>> >>> >>> >>> >>> On 10/2/07, RubyAMF wrote: >>> hello all, >>> >>> >>> i am tring to create my first application with RubyAmf, I watche >>> also >>> the video "Rails_introduction". >>> >>> When i launch the url http://localhost:3000/rubyamf/gateway >>> >>> I have this error. we can use ruamf with rail 2.0 >>> >>> thanks guys >>> >>> undefined method `render_text' for # >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ >>> rubyamf/rubyamf_core/util/action_controller.rb:39:in `render' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ >>> rubyamf_controller.rb:78:in `gateway' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:1104:in `send' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:1104:in >>> `perform_action_without_filters' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/filters.rb:695:in `call_filters' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/filters.rb:687:in >>> `perform_action_without_benchmark' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/benchmarking.rb:68:in >>> `perform_action_without_rescue' >>> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/benchmarking.rb:68:in >>> `perform_action_without_rescue' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/rescue.rb:175:in >>> `perform_action_without_caching' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/caching.rb:665:in `perform_action' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activerecord/lib/active_record/connection_adapters/abstract/ >>> query_cache.rb:33:in `cache' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activerecord/lib/active_record/query_cache.rb:8:in `cache' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/caching.rb:664:in `perform_action' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:512:in `send' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:512:in >>> `process_without_filters' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/filters.rb:683:in >>> `process_without_session_management_support' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/session_management.rb:122:in >>> `process' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:372:in `process' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:165:in >>> `handle_request' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> rails.rb: >>> 78:in `process' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> rails.rb: >>> 76:in `synchronize' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> rails.rb: >>> 76:in `process' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >>> 618:in >>> `process_client' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 617:in >>> `each' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 617:in >>> `process_client' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 736:in >>> `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 736:in >>> `initialize' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >>> 736:in >>> `new' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 736:in >>> `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 720:in >>> `initialize' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 720:in >>> `new' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 720:in >>> `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> configurator.rb:271:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> configurator.rb:270:in `each' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> configurator.rb:270:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >>> 127:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> command.rb:211:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails: >>> 243 >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:489:in `load' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:489:in `load' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:342:in >>> `new_constants_in' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:489:in `load' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> railties/lib/commands/servers/mongrel.rb:64 >>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >>> `gem_original_require' >>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >>> `require' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:496:in `require' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:342:in >>> `new_constants_in' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:496:in `require' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> railties/lib/commands/server.rb:39 >>> script/server:3:in `require' >>> script/server:3 >>> /rubyamf/gateway/render_action >>> undefined method `render_file' for # >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ >>> rubyamf/rubyamf_core/util/action_controller.rb:17:in `render' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:1105:in >>> `perform_action_without_filters' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/filters.rb:695:in `call_filters' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/filters.rb:687:in >>> `perform_action_without_benchmark' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/benchmarking.rb:68:in >>> `perform_action_without_rescue' >>> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/benchmarking.rb:68:in >>> `perform_action_without_rescue' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/rescue.rb:175:in >>> `perform_action_without_caching' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/caching.rb:665:in `perform_action' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activerecord/lib/active_record/connection_adapters/abstract/ >>> query_cache.rb:33:in `cache' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activerecord/lib/active_record/query_cache.rb:8:in `cache' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/caching.rb:664:in `perform_action' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:512:in `send' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:512:in >>> `process_without_filters' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/filters.rb:683:in >>> `process_without_session_management_support' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/session_management.rb:122:in >>> `process' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/base.rb:372:in `process' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:165:in >>> `handle_request' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> rails.rb: >>> 78:in `process' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> rails.rb: >>> 76:in `synchronize' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> rails.rb: >>> 76:in `process' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >>> 618:in >>> `process_client' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 617:in >>> `each' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 617:in >>> `process_client' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 736:in >>> `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 736:in >>> `initialize' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >>> 736:in >>> `new' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 736:in >>> `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 720:in >>> `initialize' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 720:in >>> `new' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >>> 720:in >>> `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> configurator.rb:271:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> configurator.rb:270:in `each' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> configurator.rb:270:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >>> 127:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >>> command.rb:211:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails: >>> 243 >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:489:in `load' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:489:in `load' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:342:in >>> `new_constants_in' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:489:in `load' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> railties/lib/commands/servers/mongrel.rb:64 >>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >>> `gem_original_require' >>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >>> `require' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:496:in `require' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:342:in >>> `new_constants_in' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> activesupport/lib/active_support/dependencies.rb:496:in `require' >>> /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ >>> railties/lib/commands/server.rb:39 >>> script/server:3:in `require' >>> script/server:3 >>> RubyamfController: missing default helper path rubyamf_helper >>> >>> >>> Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-02 >>> 15:06:01) [GET] >>> Session ID: >>> BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo% >>> 0ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZl% >>> 0AYzg4MDQxMmM3ZDE3OTU%3D--f9c9824ca30cdd70ecf6614a95ded259fdd069d1 >>> Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} >>> _______________________________________________ >>> Rubyamf-discussion mailing list >>> Rubyamf-discussion at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rubyamf-discussion >>> >>> _______________________________________________ >>> Rubyamf-discussion mailing list >>> Rubyamf-discussion at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rubyamf-discussion >> >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/0917d54a/attachment-0001.html From rubyamf-discussion at rubyforge.org Wed Oct 3 16:34:46 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 16:34:46 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> Message-ID: <32E5DDBE-059A-4113-8405-66D68B45ECD5@gmail.com> Le 3 oct. 07 ? 16:33, RubyAMF a ?crit : > Sorry I'm away from a computer otherwise I'd totally help you out > right now. See if you can hook up with David and get some help. > > If I don't hear that you figured it out I'll look into it either > tonight or tomorrow night. > > thanks :) Bolo From rubyamf-discussion at rubyforge.org Wed Oct 3 16:37:39 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 15:37:39 -0500 Subject: [RubyAMF] first application , big trouble In-Reply-To: <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> Message-ID: Go ahead and remove rubyamf completely from your app. All files. Then reinstall it. I'm guessing something is getting messed up by doing replace alls. On Oct 3, 2007, at 3:30 PM, RubyAMF wrote: > Hi guys > >> render_text problem is fixed. I was replaced all > > render_ > > by > > render_for_ > > in action_coller.rb > > Now i have a new error is this > > ** Use CTRL-C to stop. > You have a nil object when you didn't expect it! > You might have expected an instance of ActiveRecord::Base. > The error occurred while evaluating nil.[] > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/io/read_write.rb:48:in `read_int8' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/io/amf_deserializer.rb:60:in `preamble' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:24:in `run' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:16:in `run' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:15:in `each' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:15:in `run' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/gateway.rb:49:in `service' > /Users/bmichelin/Documents/Coding-Dev/test/app/controllers/ > rubyamf_controller.rb:73:in `gateway' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:1104:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:1104:in `perform_action_without_filters' From rubyamf-discussion at rubyforge.org Wed Oct 3 16:30:12 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 14:30:12 -0600 Subject: [RubyAMF] first application , big trouble In-Reply-To: <886E3FAB-240A-4413-85E9-4D9F9D4A1BFC@gmail.com> References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <8F4B079A-75D6-4248-8D89-D14284C8D02B@gmail.com> <886E3FAB-240A-4413-85E9-4D9F9D4A1BFC@gmail.com> Message-ID: <3ADD34E6-D460-47FB-BAE7-0C0B93D9B001@showcase60.com> hmm. sounds like the render_text is worked out now. Let me reiterate what I thought I saw on the earlier posts. You're now on the tags/current/rubyamf code. You're in what appears to be Rails 1.2.3 (at least, you're actionpack-1.13.3 is the same as mine. You've moved past some of the earlier errors. read_write.rb is choking at 48. That code is expecting a stream, which is empty. It's supposed to be reading an integer. Hmmm. Maybe you can zip up the app and send it to me. I'm curious now about how this thing's working. Maybe I can see something that way. (drichards at showcase60 dot com) On Oct 3, 2007, at 2:19 PM, RubyAMF wrote: > > Le 3 oct. 07 ? 16:13, RubyAMF a ?crit : > >> Make sure you install rubyamf from /tags/current/rubyamf. > > yes 2 times > > with this command > > $ ruby script/plugin install svn://rubyforge.org/var/svn/rubyamf/tags/ > current/rubyamf --force >> What errors are you getting? > > i have this strange error > > You have a nil object when you didn't expect it! > You might have expected an instance of ActiveRecord::Base. > The error occurred while evaluating nil.[] > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/io/read_write.rb:48:in `read_int8' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/io/amf_deserializer.rb:60:in `preamble' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:24:in `run' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:16:in `run' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:15:in `each' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:15:in `run' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/gateway.rb:49:in `service' > /Users/bmichelin/Documents/Coding-Dev/test/app/controllers/ > rubyamf_controller.rb:73:in `gateway' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:1104:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:1104:in `perform_action_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/filters.rb:695:in `call_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/filters.rb:687:in `perform_action_without_benchmark' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/rescue.rb:175:in `perform_action_without_caching' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/caching.rb:665:in `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ > active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ > active_record/query_cache.rb:8:in `cache' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/caching.rb:664:in `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:512:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:512:in `process_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/filters.rb:683:in > `process_without_session_management_support' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/session_management.rb:122:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:372:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/dispatcher.rb:165:in `handle_request' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/dispatcher.rb:114:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/dispatcher.rb:125:in `dispatch_cgi' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 78:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:489:in `load' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:489:in `load' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:342:in `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:489:in `load' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ > servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:496:in `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:342:in `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:496:in `require' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ > server.rb:39 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > script/server:3 > /rubyamf/gateway/render_action > Missing template rubyamf/gateway.html.erb in view path /Users/ > bmichelin/Documents/Coding-Dev/test/app/views > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:1215:in `assert_existence_of_template_file' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:1048:in `render_for_file' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/util/action_controller.rb:17:in `render' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:1105:in `perform_action_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/filters.rb:695:in `call_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/filters.rb:687:in `perform_action_without_benchmark' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/rescue.rb:175:in `perform_action_without_caching' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/caching.rb:665:in `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ > active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ > active_record/query_cache.rb:8:in `cache' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/caching.rb:664:in `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:512:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:512:in `process_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/filters.rb:683:in > `process_without_session_management_support' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/session_management.rb:122:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:372:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/dispatcher.rb:165:in `handle_request' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/dispatcher.rb:114:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/dispatcher.rb:125:in `dispatch_cgi' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 78:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:489:in `load' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:489:in `load' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:342:in `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:489:in `load' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ > servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:496:in `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:342:in `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ > active_support/dependencies.rb:496:in `require' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ > server.rb:39 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > script/server:3 > RubyamfController: missing default helper path rubyamf_helper > >> Make sure you didnt modify the rubyamf controller. > i don't touch this controller :) >> I saw the other error of render_text not being a method, but that >> wasn't ever in the rubyamf controller. > this error is fix now, i was replaced all > render_ > by > render_for_ > > inn action_coller.rb > > thanks > > > Bolo >> > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion From rubyamf-discussion at rubyforge.org Wed Oct 3 16:39:14 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 15:39:14 -0500 Subject: [RubyAMF] first application , big trouble In-Reply-To: <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> Message-ID: What are you doing to install rubyamf?this issue your seeing was fixed in a few release back. The box said requires Windows XP or greater. So I got a Mac. On Oct 3, 2007, at 3:30 PM, RubyAMF wrote: > Hi guys > >> render_text problem is fixed. I was replaced all > > render_ > > by > > render_for_ > > in action_coller.rb > > Now i have a new error is this > > ** Use CTRL-C to stop. > You have a nil object when you didn't expect it! > You might have expected an instance of ActiveRecord::Base. > The error occurred while evaluating nil.[] > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/io/read_write.rb:48:in `read_int8' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/io/amf_deserializer.rb:60:in `preamble' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:24:in `run' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:16:in `run' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:15:in `each' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:15:in `run' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/gateway.rb:49:in `service' > /Users/bmichelin/Documents/Coding-Dev/test/app/controllers/ > rubyamf_controller.rb:73:in `gateway' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:1104:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:1104:in `perform_action_without_filters' From rubyamf-discussion at rubyforge.org Wed Oct 3 16:48:32 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 16:48:32 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: <3ADD34E6-D460-47FB-BAE7-0C0B93D9B001@showcase60.com> References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <8F4B079A-75D6-4248-8D89-D14284C8D02B@gmail.com> <886E3FAB-240A-4413-85E9-4D9F9D4A1BFC@gmail.com> <3ADD34E6-D460-47FB-BAE7-0C0B93D9B001@showcase60.com> Message-ID: I sent u the zip thanks Le 3 oct. 07 ? 16:30, RubyAMF a ?crit : > hmm. sounds like the render_text is worked out now. > > Let me reiterate what I thought I saw on the earlier posts. > > You're now on the tags/current/rubyamf code. You're in what appears > to be Rails 1.2.3 (at least, you're actionpack-1.13.3 is the same as > mine. You've moved past some of the earlier errors. read_write.rb > is choking at 48. > > That code is expecting a stream, which is empty. It's supposed to be > reading an integer. Hmmm. Maybe you can zip up the app and send it > to me. I'm curious now about how this thing's working. Maybe I can > see something that way. (drichards at showcase60 dot com) > > > > > > > On Oct 3, 2007, at 2:19 PM, RubyAMF wrote: > >> >> Le 3 oct. 07 ? 16:13, RubyAMF a ?crit : >> >>> Make sure you install rubyamf from /tags/current/rubyamf. >> >> yes 2 times >> >> with this command >> >> $ ruby script/plugin install svn://rubyforge.org/var/svn/rubyamf/ >> tags/ >> current/rubyamf --force >>> What errors are you getting? >> >> i have this strange error >> >> You have a nil object when you didn't expect it! >> You might have expected an instance of ActiveRecord::Base. >> The error occurred while evaluating nil.[] >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/io/read_write.rb:48:in `read_int8' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/io/amf_deserializer.rb:60:in `preamble' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/filters.rb:24:in `run' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/filters.rb:16:in `run' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/filters.rb:15:in `each' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/filters.rb:15:in `run' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/gateway.rb:49:in `service' >> /Users/bmichelin/Documents/Coding-Dev/test/app/controllers/ >> rubyamf_controller.rb:73:in `gateway' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:1104:in `send' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:1104:in `perform_action_without_filters' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/filters.rb:695:in `call_filters' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/filters.rb:687:in >> `perform_action_without_benchmark' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/rescue.rb:175:in `perform_action_without_caching' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/caching.rb:665:in `perform_action' >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ >> active_record/connection_adapters/abstract/query_cache.rb:33:in >> `cache' >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ >> active_record/query_cache.rb:8:in `cache' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/caching.rb:664:in `perform_action' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:512:in `send' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:512:in `process_without_filters' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/filters.rb:683:in >> `process_without_session_management_support' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/session_management.rb:122:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:372:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/dispatcher.rb:165:in `handle_request' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/dispatcher.rb:114:in `dispatch' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/dispatcher.rb:125:in `dispatch_cgi' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/dispatcher.rb:9:in `dispatch' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 78:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `synchronize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:271:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >> 127:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> command.rb:211:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:489:in `load' >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:489:in `load' >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:342:in `new_constants_in' >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:489:in `load' >> /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ >> servers/mongrel.rb:64 >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require' >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require' >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:496:in `require' >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:342:in `new_constants_in' >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:496:in `require' >> /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ >> server.rb:39 >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require' >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require' >> script/server:3 >> /rubyamf/gateway/render_action >> Missing template rubyamf/gateway.html.erb in view path /Users/ >> bmichelin/Documents/Coding-Dev/test/app/views >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:1215:in `assert_existence_of_template_file' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:1048:in `render_for_file' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/util/action_controller.rb:17:in `render' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:1105:in `perform_action_without_filters' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/filters.rb:695:in `call_filters' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/filters.rb:687:in >> `perform_action_without_benchmark' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/rescue.rb:175:in `perform_action_without_caching' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/caching.rb:665:in `perform_action' >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ >> active_record/connection_adapters/abstract/query_cache.rb:33:in >> `cache' >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3.7707/lib/ >> active_record/query_cache.rb:8:in `cache' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/caching.rb:664:in `perform_action' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:512:in `send' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:512:in `process_without_filters' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/filters.rb:683:in >> `process_without_session_management_support' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/session_management.rb:122:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:372:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/dispatcher.rb:165:in `handle_request' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/dispatcher.rb:114:in `dispatch' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/dispatcher.rb:125:in `dispatch_cgi' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/dispatcher.rb:9:in `dispatch' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 78:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `synchronize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: >> 76:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in >> `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `initialize' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `new' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:271:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `each' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: >> 127:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> command.rb:211:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:489:in `load' >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:489:in `load' >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:342:in `new_constants_in' >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:489:in `load' >> /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ >> servers/mongrel.rb:64 >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require' >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require' >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:496:in `require' >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:342:in `new_constants_in' >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2.7707/lib/ >> active_support/dependencies.rb:496:in `require' >> /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3.7707/lib/commands/ >> server.rb:39 >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require' >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require' >> script/server:3 >> RubyamfController: missing default helper path rubyamf_helper >> >>> Make sure you didnt modify the rubyamf controller. >> i don't touch this controller :) >>> I saw the other error of render_text not being a method, but that >>> wasn't ever in the rubyamf controller. >> this error is fix now, i was replaced all >> render_ >> by >> render_for_ >> >> inn action_coller.rb >> >> thanks >> >> >> Bolo >>> >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion From rubyamf-discussion at rubyforge.org Wed Oct 3 16:49:35 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 16:49:35 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> Message-ID: I used this command ruby script/plugin install svn://rubyforge.org/var/svn/rubyamf/tags/ current/rubyamf --force it's not good way ? bye -Bolo Le 3 oct. 07 ? 16:39, RubyAMF a ?crit : > What are you doing to install rubyamf?this issue your seeing was fixed > in a few release back. > > > The box said requires Windows XP or greater. So I got a Mac. > > On Oct 3, 2007, at 3:30 PM, RubyAMF > wrote: > >> Hi guys >> >>> render_text problem is fixed. I was replaced all >> >> render_ >> >> by >> >> render_for_ >> >> in action_coller.rb >> >> Now i have a new error is this >> >> ** Use CTRL-C to stop. >> You have a nil object when you didn't expect it! >> You might have expected an instance of ActiveRecord::Base. >> The error occurred while evaluating nil.[] >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/io/read_write.rb:48:in `read_int8' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/io/amf_deserializer.rb:60:in `preamble' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/filters.rb:24:in `run' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/filters.rb:16:in `run' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/filters.rb:15:in `each' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/filters.rb:15:in `run' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/gateway.rb:49:in `service' >> /Users/bmichelin/Documents/Coding-Dev/test/app/controllers/ >> rubyamf_controller.rb:73:in `gateway' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:1104:in `send' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:1104:in `perform_action_without_filters' > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion From rubyamf-discussion at rubyforge.org Wed Oct 3 17:48:59 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 16:48:59 -0500 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> Message-ID: <2EA016B2-18D7-4C5C-A9B4-AD86450583F3@rubyamf.org> Yeah thats fine. I'll check out your situation tonight or tomorrow and get back to u. The box said requires Windows XP or greater. So I got a Mac. On Oct 3, 2007, at 3:49 PM, RubyAMF wrote: > I used this command > > ruby script/plugin install svn://rubyforge.org/var/svn/rubyamf/tags/ > current/rubyamf --force > > it's not good way ? > > bye > > -Bolo > Le 3 oct. 07 ? 16:39, RubyAMF a ?crit : > >> What are you doing to install rubyamf?this issue your seeing was >> fixed >> in a few release back. >> >> >> The box said requires Windows XP or greater. So I got a Mac. >> >> On Oct 3, 2007, at 3:30 PM, RubyAMF > discussion at rubyforge.org> >> wrote: >> >>> Hi guys >>> >>>> render_text problem is fixed. I was replaced all >>> >>> render_ >>> >>> by >>> >>> render_for_ >>> >>> in action_coller.rb >>> >>> Now i have a new error is this >>> >>> ** Use CTRL-C to stop. >>> You have a nil object when you didn't expect it! >>> You might have expected an instance of ActiveRecord::Base. >>> The error occurred while evaluating nil.[] >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/io/read_write.rb:48:in `read_int8' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/io/amf_deserializer.rb:60:in `preamble' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:24:in `run' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:16:in `run' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:15:in `each' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:15:in `run' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/gateway.rb:49:in `service' >>> /Users/bmichelin/Documents/Coding-Dev/test/app/controllers/ >>> rubyamf_controller.rb:73:in `gateway' >>> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >>> action_controller/base.rb:1104:in `send' >>> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >>> action_controller/base.rb:1104:in `perform_action_without_filters' >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion From rubyamf-discussion at rubyforge.org Wed Oct 3 19:15:47 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 19:15:47 -0400 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071001164345.4cd3c473.seth@4thtemple.com> Message-ID: <20071003191547.64acd98e.seth@4thtemple.com> it's funny, ssr actually interprets this situation as a faultEvent. Not sure why .. but I'll worry about that later. On Mon, 1 Oct 2007 20:49:02 -0700 RubyAMF wrote: > Yeah, so let's say you have these models defined: > > class User < ActiveRecord::Base > has_many :addresses > end > > class Address < ActiveRecord::Base > belongs_to :user > end > > Now in a controller you do this: > class MyController < ... > def myaction > myadd = Address.find(1, :include => :user) > render :amf => myadd > end > end > > > The result in RubyAMF will be a VO, and the "user" property will be an > array, and the 0 index will be the "user" object. This is incorrect as the > "user" property should be the user object as expected. this happens in the > active_record_adapter.. > > -Aaron > > > On 10/1/07, RubyAMF wrote: > > > > I apologize for not being familiar with much of RAMF, my project hasn't > > progressed to backend developement yet.... > > > > But to clarify what is happening, is if a call is made to a model that > > uses foreign key constraints, the resulting object will be returned to the > > swf as an array wrapped in another array, where the real model array/hash is > > inside index 0? > > > > (sorry.. i havent actually gotten to the backend portion of my project > > yet..) > > > > > -Update the active_record_adapter to support a model association of > > > :belongs_to. Currently if a model has a :belongs_to relationship, that > > > object get's returned wrapped in an array ( > > > re.result.myModelVO.myBelongsToProperty [0]. Which is not correct. It > > should > > > be re.result.myModelVO.myBelognsToProperty. This happens in the > > > active_record_adapter#run_single method, because the payload object is > > > initially created as an array (initla_data = []). the object get's > > pushed > > > into the array. Some time needs to be put into this to correctly alter > > the > > > adapter so that it won't break situations where models have a :has_many > > > relationship as well. > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > -- From rubyamf-discussion at rubyforge.org Wed Oct 3 22:21:41 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 19:21:41 -0700 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: <20071003191547.64acd98e.seth@4thtemple.com> References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071001164345.4cd3c473.seth@4thtemple.com> <20071003191547.64acd98e.seth@4thtemple.com> Message-ID: <0D1F9F5E-9C80-4FA3-A7E6-CDC3035F0A56@rubyamf.org> U probably are getting a fault. Trace out fe.fault.faultString The box said requires Windows XP or greater. So I got a Mac. On Oct 3, 2007, at 4:15 PM, RubyAMF wrote: > it's funny, ssr actually interprets this situation as a faultEvent. > Not sure why .. but I'll worry about that later. > > On Mon, 1 Oct 2007 20:49:02 -0700 > RubyAMF wrote: > >> Yeah, so let's say you have these models defined: >> >> class User < ActiveRecord::Base >> has_many :addresses >> end >> >> class Address < ActiveRecord::Base >> belongs_to :user >> end >> >> Now in a controller you do this: >> class MyController < ... >> def myaction >> myadd = Address.find(1, :include => :user) >> render :amf => myadd >> end >> end >> >> >> The result in RubyAMF will be a VO, and the "user" property will be >> an >> array, and the 0 index will be the "user" object. This is incorrect >> as the >> "user" property should be the user object as expected. this happens >> in the >> active_record_adapter.. >> >> -Aaron >> >> >> On 10/1/07, RubyAMF wrote: >>> >>> I apologize for not being familiar with much of RAMF, my project >>> hasn't >>> progressed to backend developement yet.... >>> >>> But to clarify what is happening, is if a call is made to a model >>> that >>> uses foreign key constraints, the resulting object will be >>> returned to the >>> swf as an array wrapped in another array, where the real model >>> array/hash is >>> inside index 0? >>> >>> (sorry.. i havent actually gotten to the backend portion of my >>> project >>> yet..) >>> >>>> -Update the active_record_adapter to support a model association of >>>> :belongs_to. Currently if a model has a :belongs_to relationship, >>>> that >>>> object get's returned wrapped in an array ( >>>> re.result.myModelVO.myBelongsToProperty [0]. Which is not >>>> correct. It >>> should >>>> be re.result.myModelVO.myBelognsToProperty. This happens in the >>>> active_record_adapter#run_single method, because the payload >>>> object is >>>> initially created as an array (initla_data = []). the object get's >>> pushed >>>> into the array. Some time needs to be put into this to correctly >>>> alter >>> the >>>> adapter so that it won't break situations where models have >>>> a :has_many >>>> relationship as well. >>> _______________________________________________ >>> Rubyamf-discussion mailing list >>> Rubyamf-discussion at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rubyamf-discussion >>> >> > > > -- > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion From rubyamf-discussion at rubyforge.org Thu Oct 4 02:48:17 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Thu, 4 Oct 2007 02:48:17 -0400 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: <0D1F9F5E-9C80-4FA3-A7E6-CDC3035F0A56@rubyamf.org> References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071001164345.4cd3c473.seth@4thtemple.com> <20071003191547.64acd98e.seth@4thtemple.com> <0D1F9F5E-9C80-4FA3-A7E6-CDC3035F0A56@rubyamf.org> Message-ID: <20071004024817.fae900a2.seth@4thtemple.com> On Wed, 3 Oct 2007 19:21:41 -0700 RubyAMF wrote: yeah.. when stepping through run_multiple/single .. it's doing !ar.empty? .. but ar isn't an array .. so i fixed it so it checks both scenerios.. ok = false; if (ar.instance_of? Array) if (!ar.empty? && !ar.nil?) ok=true; end end if ((!ar.instance_of? Array && !ar.nil?) || ok) > U probably are getting a fault. Trace out fe.fault.faultString > > > The box said requires Windows XP or greater. So I got a Mac. > > On Oct 3, 2007, at 4:15 PM, RubyAMF > wrote: > > > it's funny, ssr actually interprets this situation as a faultEvent. > > Not sure why .. but I'll worry about that later. > > > > On Mon, 1 Oct 2007 20:49:02 -0700 > > RubyAMF wrote: > > > >> Yeah, so let's say you have these models defined: > >> > >> class User < ActiveRecord::Base > >> has_many :addresses > >> end > >> > >> class Address < ActiveRecord::Base > >> belongs_to :user > >> end > >> > >> Now in a controller you do this: > >> class MyController < ... > >> def myaction > >> myadd = Address.find(1, :include => :user) > >> render :amf => myadd > >> end > >> end > >> > >> > >> The result in RubyAMF will be a VO, and the "user" property will be > >> an > >> array, and the 0 index will be the "user" object. This is incorrect > >> as the > >> "user" property should be the user object as expected. this happens > >> in the > >> active_record_adapter.. > >> > >> -Aaron > >> > >> > >> On 10/1/07, RubyAMF wrote: > >>> > >>> I apologize for not being familiar with much of RAMF, my project > >>> hasn't > >>> progressed to backend developement yet.... > >>> > >>> But to clarify what is happening, is if a call is made to a model > >>> that > >>> uses foreign key constraints, the resulting object will be > >>> returned to the > >>> swf as an array wrapped in another array, where the real model > >>> array/hash is > >>> inside index 0? > >>> > >>> (sorry.. i havent actually gotten to the backend portion of my > >>> project > >>> yet..) > >>> > >>>> -Update the active_record_adapter to support a model association of > >>>> :belongs_to. Currently if a model has a :belongs_to relationship, > >>>> that > >>>> object get's returned wrapped in an array ( > >>>> re.result.myModelVO.myBelongsToProperty [0]. Which is not > >>>> correct. It > >>> should > >>>> be re.result.myModelVO.myBelognsToProperty. This happens in the > >>>> active_record_adapter#run_single method, because the payload > >>>> object is > >>>> initially created as an array (initla_data = []). the object get's > >>> pushed > >>>> into the array. Some time needs to be put into this to correctly > >>>> alter > >>> the > >>>> adapter so that it won't break situations where models have > >>>> a :has_many > >>>> relationship as well. > >>> _______________________________________________ > >>> Rubyamf-discussion mailing list > >>> Rubyamf-discussion at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > >>> > >> > > > > > > -- > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -- From rubyamf-discussion at rubyforge.org Thu Oct 4 05:08:38 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Thu, 4 Oct 2007 05:08:38 -0400 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: <20071004024817.fae900a2.seth@4thtemple.com> References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071001164345.4cd3c473.seth@4thtemple.com> <20071003191547.64acd98e.seth@4thtemple.com> <0D1F9F5E-9C80-4FA3-A7E6-CDC3035F0A56@rubyamf.org> <20071004024817.fae900a2.seth@4thtemple.com> Message-ID: <20071004050838.b1f0fb61.seth@4thtemple.com> hey.. http://www.4thtemple.com/stuff/active_record_adapter.rb this seems to fix the array wrapper problem.. but theres another bug .. lets say you do something like render :amf => addr.user and in as3, if you do re.return.name gets confused there.. anyway i'll work on that tomorrow On Thu, 4 Oct 2007 02:48:17 -0400 RubyAMF wrote: > On Wed, 3 Oct 2007 19:21:41 -0700 > RubyAMF wrote: > > yeah.. when stepping through run_multiple/single .. it's doing !ar.empty? .. but ar isn't an array .. so i fixed it so it checks both scenerios.. > > ok = false; > if (ar.instance_of? Array) > if (!ar.empty? && !ar.nil?) > ok=true; > end > end > > if ((!ar.instance_of? Array && !ar.nil?) || ok) > > > > > U probably are getting a fault. Trace out fe.fault.faultString > > > > > > The box said requires Windows XP or greater. So I got a Mac. > > > > On Oct 3, 2007, at 4:15 PM, RubyAMF > > wrote: > > > > > it's funny, ssr actually interprets this situation as a faultEvent. > > > Not sure why .. but I'll worry about that later. > > > > > > On Mon, 1 Oct 2007 20:49:02 -0700 > > > RubyAMF wrote: > > > > > >> Yeah, so let's say you have these models defined: > > >> > > >> class User < ActiveRecord::Base > > >> has_many :addresses > > >> end > > >> > > >> class Address < ActiveRecord::Base > > >> belongs_to :user > > >> end > > >> > > >> Now in a controller you do this: > > >> class MyController < ... > > >> def myaction > > >> myadd = Address.find(1, :include => :user) > > >> render :amf => myadd > > >> end > > >> end > > >> > > >> > > >> The result in RubyAMF will be a VO, and the "user" property will be > > >> an > > >> array, and the 0 index will be the "user" object. This is incorrect > > >> as the > > >> "user" property should be the user object as expected. this happens > > >> in the > > >> active_record_adapter.. > > >> > > >> -Aaron > > >> > > >> > > >> On 10/1/07, RubyAMF wrote: > > >>> > > >>> I apologize for not being familiar with much of RAMF, my project > > >>> hasn't > > >>> progressed to backend developement yet.... > > >>> > > >>> But to clarify what is happening, is if a call is made to a model > > >>> that > > >>> uses foreign key constraints, the resulting object will be > > >>> returned to the > > >>> swf as an array wrapped in another array, where the real model > > >>> array/hash is > > >>> inside index 0? > > >>> > > >>> (sorry.. i havent actually gotten to the backend portion of my > > >>> project > > >>> yet..) > > >>> > > >>>> -Update the active_record_adapter to support a model association of > > >>>> :belongs_to. Currently if a model has a :belongs_to relationship, > > >>>> that > > >>>> object get's returned wrapped in an array ( > > >>>> re.result.myModelVO.myBelongsToProperty [0]. Which is not > > >>>> correct. It > > >>> should > > >>>> be re.result.myModelVO.myBelognsToProperty. This happens in the > > >>>> active_record_adapter#run_single method, because the payload > > >>>> object is > > >>>> initially created as an array (initla_data = []). the object get's > > >>> pushed > > >>>> into the array. Some time needs to be put into this to correctly > > >>>> alter > > >>> the > > >>>> adapter so that it won't break situations where models have > > >>>> a :has_many > > >>>> relationship as well. > > >>> _______________________________________________ > > >>> Rubyamf-discussion mailing list > > >>> Rubyamf-discussion at rubyforge.org > > >>> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > >>> > > >> > > > > > > > > > -- > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > -- > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -- From rubyamf-discussion at rubyforge.org Thu Oct 4 05:19:58 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Thu, 4 Oct 2007 11:19:58 +0200 Subject: [RubyAMF] VO or not VO ? Message-ID: <72097773-C37C-4E25-A238-92C2441BEBC8@inbp.com> Hi all ! I read wiki about Remote Object (http://rubyamf.org:2500/wiki/show/ RemoteObject) and Open Struct (http://rubyamf.org:2500/wiki/show/OpenStruct) but something is not clear for me :( I use Flex & Rails and data transfert is OK. But the Structure of object pass by "params" is not what i want to make insert or update easily. So, someone can give me a simple example to use VO in Flex and ActiveRecord in Rails ? Thanks, Cyb. PS : Sorry for my english, I'm french ;-) From rubyamf-discussion at rubyforge.org Thu Oct 4 06:04:17 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Thu, 4 Oct 2007 06:04:17 -0400 Subject: [RubyAMF] VO or not VO ? In-Reply-To: <72097773-C37C-4E25-A238-92C2441BEBC8@inbp.com> References: <72097773-C37C-4E25-A238-92C2441BEBC8@inbp.com> Message-ID: Me too, i seach few exemples :) Bolo Le 4 oct. 07 ? 05:19, RubyAMF a ?crit : > Hi all ! > > I read wiki about Remote Object (http://rubyamf.org:2500/wiki/show/ > RemoteObject) > and Open Struct (http://rubyamf.org:2500/wiki/show/OpenStruct) but > something is not clear for me :( > > I use Flex & Rails and data transfert is OK. But the Structure of > object pass by "params" is not what i want > to make insert or update easily. > > So, someone can give me a simple example to use VO in Flex and > ActiveRecord in Rails ? > > Thanks, > > Cyb. > > > PS : Sorry for my english, I'm french ;-) > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion From rubyamf-discussion at rubyforge.org Thu Oct 4 09:26:58 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Thu, 4 Oct 2007 09:26:58 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> Message-ID: <1F59705C-C844-42D6-ABFC-354D20D2CD75@gmail.com> Morning all, i did few test this morning, when i test my application directly without locomotive. I have 2 same errors my config http://pastie.caboo.se/103673 when i test with locomotive , i have only one error the method {hello_world} in class {/test_controller.rb} is not declared. my confg http://pastie.caboo.se/103674 thanks all Bolo From rubyamf-discussion at rubyforge.org Wed Oct 3 14:59:54 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Wed, 3 Oct 2007 14:59:54 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: Message-ID: <9380DD57-5876-4446-AAD9-B1C33C579DA1@gmail.com> it's always me :) i 's still working on my application. my mxml file my Controller class PagesController < ApplicationController def hello_word respond_to do |format| format.amf { render :amf => "Hello from AMF " } format.html { render :text => "Hello from HTM "} end end end When i push my button, i can see in message box "Remoting Service called"" but after nothing, the service don't respond me :( In my log file, i have this message RubyamfController: missing default helper path rubyamf_helper Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-03 14:54:38) [POST] Session ID: BAh7BzoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZlYzg4MDQxMmM3ZDE3% 0AOTUiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhh% 0Ac2h7AAY6CkB1c2VkewA%3D--c5ec26e50ccf2aadff58fb1384d690bb65cf50f1 Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} thanks for help Le 2 oct. 07 ? 16:57, RubyAMF a ?crit : > Rails 2.0 is not officially supported yet. And those screencasts > are very old. > > Here is the official rails installer: > http://blog.rubyamf.org/?p=34 > > -Aaron > > > > > On 10/2/07, RubyAMF wrote: > hello all, > > > i am tring to create my first application with RubyAmf, I watche also > the video "Rails_introduction". > > When i launch the url http://localhost:3000/rubyamf/gateway > > I have this error. we can use ruamf with rail 2.0 > > thanks guys > > undefined method `render_text' for # > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/util/action_controller.rb:39:in `render' > /Users/bmichelin/Documents/Coding-Dev/partenaires/app/controllers/ > rubyamf_controller.rb:78:in `gateway' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1104:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1104:in > `perform_action_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:695:in `call_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:687:in > `perform_action_without_benchmark' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/rescue.rb:175:in > `perform_action_without_caching' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:665:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/connection_adapters/abstract/ > query_cache.rb:33:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/query_cache.rb:8:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:664:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in > `process_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:683:in > `process_without_session_management_support' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/session_management.rb:122:in > `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:372:in `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 78:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails:243 > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/server.rb:39 > script/server:3:in `require' > script/server:3 > /rubyamf/gateway/render_action > undefined method `render_file' for # > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/plugins/ > rubyamf/rubyamf_core/util/action_controller.rb:17:in `render' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:1105:in > `perform_action_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:695:in `call_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:687:in > `perform_action_without_benchmark' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/rescue.rb:175:in > `perform_action_without_caching' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:665:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/connection_adapters/abstract/ > query_cache.rb:33:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activerecord/lib/active_record/query_cache.rb:8:in `cache' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/caching.rb:664:in `perform_action' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in `send' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:512:in > `process_without_filters' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/filters.rb:683:in > `process_without_session_management_support' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/session_management.rb:122:in > `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/base.rb:372:in `process' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:165:in `handle_request' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:114:in `dispatch' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:125:in `dispatch_cgi' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 78:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb: > 76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/bin/mongrel_rails:243 > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:489:in `load' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > activesupport/lib/active_support/dependencies.rb:496:in `require' > /Users/bmichelin/Documents/Coding-Dev/partenaires/vendor/rails/ > railties/lib/commands/server.rb:39 > script/server:3:in `require' > script/server:3 > RubyamfController: missing default helper path rubyamf_helper > > > Processing RubyamfController#gateway (for 127.0.0.1 at 2007-10-02 > 15:06:01) [GET] > Session ID: > BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo% > 0ASGFzaHsABjoKQHVzZWR7ADoMY3NyZl9pZCIlZmMxYmQ4NTNlMWQyNTE5ZWZl% > 0AYzg4MDQxMmM3ZDE3OTU%3D--f9c9824ca30cdd70ecf6614a95ded259fdd069d1 > Parameters: {"action"=>"gateway", "controller"=>"rubyamf"} > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071003/92f27505/attachment-0001.html From rubyamf-discussion at rubyforge.org Thu Oct 4 08:55:48 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Thu, 4 Oct 2007 08:55:48 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> Message-ID: <0AB39D8E-2E78-4BB8-A6DA-3CA2344C9CC3@gmail.com> Morning all, i did few test this morning, when i test my application directly without locomotive. I have 2 same errors my config *** LOCAL GEMS *** actionmailer (1.3.3.7707, 1.3.3) Service layer for easy email delivery and testing. actionpack (1.13.3.7707, 1.13.3) Web-flow and rendering framework putting the VC in MVC. actionwebservice (1.2.3) Web service support for Action Pack. activerecord (1.15.3.7707, 1.15.3) Implements the ActiveRecord pattern for ORM. activeresource (0.9.0.7707) Think Active Record for web resources. activesupport (1.4.2.7707, 1.4.2) Support and utility classes used by the Rails framework. capistrano (2.0.0) Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH. cgi_multipart_eof_fix (2.3, 2.1) Fix an exploitable bug in CGI multipart parsing. daemons (1.0.8, 1.0.7) A toolkit to create and control daemons in different ways fastthread (1.0) Optimized replacement for thread.rb primitives gem_plugin (0.2.2) A plugin system based only on rubygems that uses dependencies only highline (1.4.0) HighLine is a high-level command-line IO library. mongrel (1.0.1) A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps. needle (1.3.0) Needle is a Dependency Injection/Inversion of Control container for Ruby. It supports both type-2 (setter) and type-3 (constructor) injection. It takes advantage of the dynamic nature of Ruby to provide a rich and flexible approach to injecting dependencies. net-sftp (1.1.0) Net::SFTP is a pure-Ruby implementation of the SFTP client protocol. net-ssh (1.1.2) Net::SSH is a pure-Ruby implementation of the SSH2 client protocol. rails (1.2.3.7707, 1.2.3) Web-application framework with template engine, control-flow layer, and ORM. rake (0.7.3) Ruby based make-like utility. sources (0.0.1) This package provides download sources for remote gem installation sqlite3-ruby (1.2.1) SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite3 database. termios (0.9.4) Termios module are simple wrapper for termios(3). It can be included into IO-family classes and can extend IO-family objects. In addition, the methods can use as module function. ruby 1.8.6 (2007-03-13 patchlevel 0) [universal-darwin8.0] when i test with locomotive , i have only one error the method {hello_world} in class {/test_controller.rb} is not declared. my confg *** LOCAL GEMS *** actionmailer (1.3.3) Service layer for easy email delivery and testing. actionpack (1.13.3) Web-flow and rendering framework putting the VC in MVC. actionwebservice (1.2.3) Web service support for Action Pack. activerecord (1.15.3) Implements the ActiveRecord pattern for ORM. activesupport (1.4.2) Support and utility classes used by the Rails framework. BlueCloth (1.0.0) BlueCloth is a Ruby implementation of Markdown, a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML). builder (2.1.2, 2.1.1) Builders for MarkUp. camping (1.5.180) minature rails for stay-at-home moms capistrano (1.4.1) Capistrano is a framework and utility for executing commands in parallel on multiple remote machines, via SSH. The primary goal is to simplify and automate the deployment of web applications. capistrano-ext (1.1.1, 1.1.0) Capistrano Extensions is a set of useful task libraries and methods that other developers may reference in their own recipe files. cgi_multipart_eof_fix (2.1) Fix an exploitable bug in CGI multipart parsing which affects Ruby <= 1.8.5 when multipart boundary attribute contains a non-halting regular expression string. daemons (1.0.6, 1.0.5) A toolkit to create and control daemons in different ways fastthread (1.0, 0.6.4.1) Optimized replacement for thread.rb primitives fcgi (0.8.7) FastCGI library for Ruby. feedtools (0.2.26) Parsing, generation, and caching system for xml news feeds. ferret (0.11.4) Ruby indexing library. gem_plugin (0.2.2) A plugin system based only on rubygems that uses dependencies only gettext (1.9.0) Ruby-GetText-Package is a libary and tools to localize messages. gruff (0.2.8) Beautiful graphs for one or multiple datasets. hoe (1.2.1, 1.2.0) Hoe is a way to write Rakefiles much easier and cleaner. image_science (1.1.1) ImageScience is a clean and happy Ruby library that generates thumbnails -- and kicks the living crap out of RMagick. io-reactor (0.05) An implementation of the Reactor design pattern for multiplexed asynchronous single-thread IO. markaby (0.5) Markup as Ruby, write HTML in your native Ruby tongue memcache-client (1.3.0) A Ruby memcached client metaid (1.0) slight metaprogramming helpers mongrel (1.0.1) A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps. mongrel_cluster (1.0.2, 0.2.1) Mongrel plugin that provides commands and Capistrano tasks for managing multiple Mongrel processes. mongrel_config (0.3) Mongrel plugin that gives you web based config tool using Camping mongrel_status (0.2.2) A sample plugin that reports the status of mongrel. needle (1.3.0) Needle is a Dependency Injection/Inversion of Control container for Ruby. It supports both type-2 (setter) and type-3 (constructor) injection. It takes advantage of the dynamic nature of Ruby to provide a rich and flexible approach to injecting dependencies. net-sftp (1.1.0) Net::SFTP is a pure-Ruby implementation of the SFTP client protocol. net-ssh (1.0.10) Net::SSH is a pure-Ruby implementation of the SSH2 client protocol. piston (1.3.2) Piston is a utility that enables merge tracking of remote repositories. postgres-pr (0.4.0) A pure Ruby interface to the PostgreSQL (>= 7.4) database rails (1.2.3) Web-application framework with template engine, control-flow layer, and ORM. rake (0.7.2) Ruby based make-like utility. rcov (0.8.0.2) Code coverage analysis tool for Ruby RedCloth (3.0.4, 3.0.3) RedCloth is a module for using Textile and Markdown in Ruby. Textile and Markdown are text formats. A very simple text format. Another stab at making readable text that can be converted to HTML. rmagick (1.15.4) RMagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing libraries. rspec (1.0.5, 0.8.2) RSpec-1.0.5 (r2081) - BDD for Ruby http://rspec.rubyforge.org/ Ruby-MemCache (0.0.1) This is a client library for memcached, a high-performance distributed memory cache. rubyforge (0.4.1) A simplistic script which automates a limited set of rubyforge operations RubyInline (3.6.3, 3.6.2) Multi-language extension coding within ruby. simple-rss (1.1) A simple, flexible, extensible, and liberal RSS and Atom reader for Ruby. It is designed to be backwards compatible with the standard RSS parser, but will never do RSS generation. sources (0.0.1) This package provides download sources for remote gem installation sparklines (0.4.1) Tiny graphs. sparklines_generator (0.2.2) Sparklines generator makes a Rails controller and helper for making small graphs in your web pages. See examples at http://nubyonrails.topfunky.com sqlite3-ruby (1.1.0.1) SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite3 database. (This is _why's sensibility repack.) syntax (1.0.0) Syntax is Ruby library for performing simple syntax highlighting. uuidtools (1.0.1) Generation of UUIDs. ZenTest (3.6.0, 3.4.3) ZenTest provides 4 different tools and 1 library: zentest, unit_diff, autotest, multiruby, and Test::Rails. ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.1] thanks all Bolo Le 3 oct. 07 ? 16:39, RubyAMF a ?crit : > What are you doing to install rubyamf?this issue your seeing was fixed > in a few release back. > > > The box said requires Windows XP or greater. So I got a Mac. > > On Oct 3, 2007, at 3:30 PM, RubyAMF > wrote: > >> Hi guys >> >>> render_text problem is fixed. I was replaced all >> >> render_ >> >> by >> >> render_for_ >> >> in action_coller.rb >> >> Now i have a new error is this >> >> ** Use CTRL-C to stop. >> You have a nil object when you didn't expect it! >> You might have expected an instance of ActiveRecord::Base. >> The error occurred while evaluating nil.[] >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/io/read_write.rb:48:in `read_int8' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/io/amf_deserializer.rb:60:in `preamble' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/filters.rb:24:in `run' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/filters.rb:16:in `run' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/filters.rb:15:in `each' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/filters.rb:15:in `run' >> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >> rubyamf_core/app/gateway.rb:49:in `service' >> /Users/bmichelin/Documents/Coding-Dev/test/app/controllers/ >> rubyamf_controller.rb:73:in `gateway' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:1104:in `send' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >> action_controller/base.rb:1104:in `perform_action_without_filters' > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071004/cf8ed54a/attachment-0001.html From rubyamf-discussion at rubyforge.org Thu Oct 4 08:58:54 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Thu, 4 Oct 2007 08:58:54 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> Message-ID: my config *** LOCAL GEMS *** actionmailer (1.3.3.7707, 1.3.3) Service layer for easy email delivery and testing. actionpack (1.13.3.7707, 1.13.3) Web-flow and rendering framework putting the VC in MVC. actionwebservice (1.2.3) Web service support for Action Pack. activerecord (1.15.3.7707, 1.15.3) Implements the ActiveRecord pattern for ORM. activeresource (0.9.0.7707) Think Active Record for web resources. activesupport (1.4.2.7707, 1.4.2) Support and utility classes used by the Rails framework. capistrano (2.0.0) Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH. cgi_multipart_eof_fix (2.3, 2.1) Fix an exploitable bug in CGI multipart parsing. daemons (1.0.8, 1.0.7) A toolkit to create and control daemons in different ways fastthread (1.0) Optimized replacement for thread.rb primitives gem_plugin (0.2.2) A plugin system based only on rubygems that uses dependencies only highline (1.4.0) HighLine is a high-level command-line IO library. mongrel (1.0.1) A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps. needle (1.3.0) Needle is a Dependency Injection/Inversion of Control container for Ruby. It supports both type-2 (setter) and type-3 (constructor) injection. It takes advantage of the dynamic nature of Ruby to provide a rich and flexible approach to injecting dependencies. net-sftp (1.1.0) Net::SFTP is a pure-Ruby implementation of the SFTP client protocol. net-ssh (1.1.2) Net::SSH is a pure-Ruby implementation of the SSH2 client protocol. rails (1.2.3.7707, 1.2.3) Web-application framework with template engine, control-flow layer, and ORM. rake (0.7.3) Ruby based make-like utility. sources (0.0.1) This package provides download sources for remote gem installation sqlite3-ruby (1.2.1) SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite3 database. termios (0.9.4) Termios module are simple wrapper for termios(3). It can be included into IO-family classes and can extend IO-family objects. In addition, the methods can use as module function. ruby 1.8.6 (2007-03-13 patchlevel 0) [universal-darwin8.0] when i test with locomotive , i have only one error the method {hello_world} in class {/test_controller.rb} is not declared. my confg *** LOCAL GEMS *** actionmailer (1.3.3) Service layer for easy email delivery and testing. actionpack (1.13.3) Web-flow and rendering framework putting the VC in MVC. actionwebservice (1.2.3) Web service support for Action Pack. activerecord (1.15.3) Implements the ActiveRecord pattern for ORM. activesupport (1.4.2) Support and utility classes used by the Rails framework. BlueCloth (1.0.0) BlueCloth is a Ruby implementation of Markdown, a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML). builder (2.1.2, 2.1.1) Builders for MarkUp. camping (1.5.180) minature rails for stay-at-home moms capistrano (1.4.1) Capistrano is a framework and utility for executing commands in parallel on multiple remote machines, via SSH. The primary goal is to simplify and automate the deployment of web applications. capistrano-ext (1.1.1, 1.1.0) Capistrano Extensions is a set of useful task libraries and methods that other developers may reference in their own recipe files. cgi_multipart_eof_fix (2.1) Fix an exploitable bug in CGI multipart parsing which affects Ruby <= 1.8.5 when multipart boundary attribute contains a non-halting regular expression string. daemons (1.0.6, 1.0.5) A toolkit to create and control daemons in different ways fastthread (1.0, 0.6.4.1) Optimized replacement for thread.rb primitives fcgi (0.8.7) FastCGI library for Ruby. feedtools (0.2.26) Parsing, generation, and caching system for xml news feeds. ferret (0.11.4) Ruby indexing library. gem_plugin (0.2.2) A plugin system based only on rubygems that uses dependencies only gettext (1.9.0) Ruby-GetText-Package is a libary and tools to localize messages. gruff (0.2.8) Beautiful graphs for one or multiple datasets. hoe (1.2.1, 1.2.0) Hoe is a way to write Rakefiles much easier and cleaner. image_science (1.1.1) ImageScience is a clean and happy Ruby library that generates thumbnails -- and kicks the living crap out of RMagick. io-reactor (0.05) An implementation of the Reactor design pattern for multiplexed asynchronous single-thread IO. markaby (0.5) Markup as Ruby, write HTML in your native Ruby tongue memcache-client (1.3.0) A Ruby memcached client metaid (1.0) slight metaprogramming helpers mongrel (1.0.1) A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps. mongrel_cluster (1.0.2, 0.2.1) Mongrel plugin that provides commands and Capistrano tasks for managing multiple Mongrel processes. mongrel_config (0.3) Mongrel plugin that gives you web based config tool using Camping mongrel_status (0.2.2) A sample plugin that reports the status of mongrel. needle (1.3.0) Needle is a Dependency Injection/Inversion of Control container for Ruby. It supports both type-2 (setter) and type-3 (constructor) injection. It takes advantage of the dynamic nature of Ruby to provide a rich and flexible approach to injecting dependencies. net-sftp (1.1.0) Net::SFTP is a pure-Ruby implementation of the SFTP client protocol. net-ssh (1.0.10) Net::SSH is a pure-Ruby implementation of the SSH2 client protocol. piston (1.3.2) Piston is a utility that enables merge tracking of remote repositories. postgres-pr (0.4.0) A pure Ruby interface to the PostgreSQL (>= 7.4) database rails (1.2.3) Web-application framework with template engine, control-flow layer, and ORM. rake (0.7.2) Ruby based make-like utility. rcov (0.8.0.2) Code coverage analysis tool for Ruby RedCloth (3.0.4, 3.0.3) RedCloth is a module for using Textile and Markdown in Ruby. Textile and Markdown are text formats. A very simple text format. Another stab at making readable text that can be converted to HTML. rmagick (1.15.4) RMagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing libraries. rspec (1.0.5, 0.8.2) RSpec-1.0.5 (r2081) - BDD for Ruby http://rspec.rubyforge.org/ Ruby-MemCache (0.0.1) This is a client library for memcached, a high-performance distributed memory cache. rubyforge (0.4.1) A simplistic script which automates a limited set of rubyforge operations RubyInline (3.6.3, 3.6.2) Multi-language extension coding within ruby. simple-rss (1.1) A simple, flexible, extensible, and liberal RSS and Atom reader for Ruby. It is designed to be backwards compatible with the standard RSS parser, but will never do RSS generation. sources (0.0.1) This package provides download sources for remote gem installation sparklines (0.4.1) Tiny graphs. sparklines_generator (0.2.2) Sparklines generator makes a Rails controller and helper for making small graphs in your web pages. See examples at http://nubyonrails.topfunky.com sqlite3-ruby (1.1.0.1) SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite3 database. (This is _why's sensibility repack.) syntax (1.0.0) Syntax is Ruby library for performing simple syntax highlighting. uuidtools (1.0.1) Generation of UUIDs. ZenTest (3.6.0, 3.4.3) ZenTest provides 4 different tools and 1 library: zentest, unit_diff, autotest, multiruby, and Test::Rails. ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.1] thanks all Bolo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071004/396d9c02/attachment-0001.html From rubyamf-discussion at rubyforge.org Thu Oct 4 12:02:21 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Thu, 4 Oct 2007 09:02:21 -0700 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: <20071004050838.b1f0fb61.seth@4thtemple.com> References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071001164345.4cd3c473.seth@4thtemple.com> <20071003191547.64acd98e.seth@4thtemple.com> <0D1F9F5E-9C80-4FA3-A7E6-CDC3035F0A56@rubyamf.org> <20071004024817.fae900a2.seth@4thtemple.com> <20071004050838.b1f0fb61.seth@4thtemple.com> Message-ID: Did you test to see if it works still for models with :belongs_to && :has_many ? On 10/4/07, RubyAMF wrote: > > hey.. > http://www.4thtemple.com/stuff/active_record_adapter.rb > this seems to fix the array wrapper problem.. but theres another bug .. > lets say you do something like render :amf => addr.user and in as3, if you > do re.return.name gets confused there.. anyway i'll work on that tomorrow > > On Thu, 4 Oct 2007 02:48:17 -0400 > RubyAMF wrote: > > > On Wed, 3 Oct 2007 19:21:41 -0700 > > RubyAMF wrote: > > > > yeah.. when stepping through run_multiple/single .. it's doing > !ar.empty? .. but ar isn't an array .. so i fixed it so it checks both > scenerios.. > > > > ok = false; > > if (ar.instance_of? Array) > > if (!ar.empty? && !ar.nil?) > > ok=true; > > end > > end > > > > if ((!ar.instance_of? Array && !ar.nil?) || ok) > > > > > > > > > U probably are getting a fault. Trace out fe.fault.faultString > > > > > > > > > The box said requires Windows XP or greater. So I got a Mac. > > > > > > On Oct 3, 2007, at 4:15 PM, RubyAMF > > > wrote: > > > > > > > it's funny, ssr actually interprets this situation as a faultEvent. > > > > Not sure why .. but I'll worry about that later. > > > > > > > > On Mon, 1 Oct 2007 20:49:02 -0700 > > > > RubyAMF wrote: > > > > > > > >> Yeah, so let's say you have these models defined: > > > >> > > > >> class User < ActiveRecord::Base > > > >> has_many :addresses > > > >> end > > > >> > > > >> class Address < ActiveRecord::Base > > > >> belongs_to :user > > > >> end > > > >> > > > >> Now in a controller you do this: > > > >> class MyController < ... > > > >> def myaction > > > >> myadd = Address.find(1, :include => :user) > > > >> render :amf => myadd > > > >> end > > > >> end > > > >> > > > >> > > > >> The result in RubyAMF will be a VO, and the "user" property will be > > > >> an > > > >> array, and the 0 index will be the "user" object. This is incorrect > > > >> as the > > > >> "user" property should be the user object as expected. this happens > > > >> in the > > > >> active_record_adapter.. > > > >> > > > >> -Aaron > > > >> > > > >> > > > >> On 10/1/07, RubyAMF wrote: > > > >>> > > > >>> I apologize for not being familiar with much of RAMF, my project > > > >>> hasn't > > > >>> progressed to backend developement yet.... > > > >>> > > > >>> But to clarify what is happening, is if a call is made to a model > > > >>> that > > > >>> uses foreign key constraints, the resulting object will be > > > >>> returned to the > > > >>> swf as an array wrapped in another array, where the real model > > > >>> array/hash is > > > >>> inside index 0? > > > >>> > > > >>> (sorry.. i havent actually gotten to the backend portion of my > > > >>> project > > > >>> yet..) > > > >>> > > > >>>> -Update the active_record_adapter to support a model association > of > > > >>>> :belongs_to. Currently if a model has a :belongs_to relationship, > > > >>>> that > > > >>>> object get's returned wrapped in an array ( > > > >>>> re.result.myModelVO.myBelongsToProperty [0]. Which is not > > > >>>> correct. It > > > >>> should > > > >>>> be re.result.myModelVO.myBelognsToProperty. This happens in the > > > >>>> active_record_adapter#run_single method, because the payload > > > >>>> object is > > > >>>> initially created as an array (initla_data = []). the object > get's > > > >>> pushed > > > >>>> into the array. Some time needs to be put into this to correctly > > > >>>> alter > > > >>> the > > > >>>> adapter so that it won't break situations where models have > > > >>>> a :has_many > > > >>>> relationship as well. > > > >>> _______________________________________________ > > > >>> Rubyamf-discussion mailing list > > > >>> Rubyamf-discussion at rubyforge.org > > > >>> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > >>> > > > >> > > > > > > > > > > > > -- > > > > > > > > _______________________________________________ > > > > Rubyamf-discussion mailing list > > > > Rubyamf-discussion at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > -- > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > -- > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071004/9f8ce5e7/attachment.html From rubyamf-discussion at rubyforge.org Thu Oct 4 12:05:01 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Thu, 4 Oct 2007 09:05:01 -0700 Subject: [RubyAMF] VO or not VO ? In-Reply-To: References: <72097773-C37C-4E25-A238-92C2441BEBC8@inbp.com> Message-ID: Right off hand I'd say check out this tutorial.. http://www.sephiroth.it/tutorials/flashPHP/flex_remoteobject/ It's for AMFPHP, but the same concepts apply to RubyAMF. If that doesn't help i'll throw together an example. -Aaron On 10/4/07, RubyAMF wrote: > > Me too, i seach few exemples :) > > Bolo > Le 4 oct. 07 ? 05:19, RubyAMF a ?crit : > > > Hi all ! > > > > I read wiki about Remote Object (http://rubyamf.org:2500/wiki/show/ > > RemoteObject) > > and Open Struct (http://rubyamf.org:2500/wiki/show/OpenStruct) but > > something is not clear for me :( > > > > I use Flex & Rails and data transfert is OK. But the Structure of > > object pass by "params" is not what i want > > to make insert or update easily. > > > > So, someone can give me a simple example to use VO in Flex and > > ActiveRecord in Rails ? > > > > Thanks, > > > > Cyb. > > > > > > PS : Sorry for my english, I'm french ;-) > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071004/4e15cedc/attachment.html From rubyamf-discussion at rubyforge.org Thu Oct 4 12:07:28 2007 From: rubyamf-discussion at rubyforge.org (RubyAMF) Date: Thu, 4 Oct 2007 09:07:28 -0700 Subject: [RubyAMF] first application , big trouble In-Reply-To: <0AB39D8E-2E78-4BB8-A6DA-3CA2344C9CC3@gmail.com> References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> <0AB39D8E-2E78-4BB8-A6DA-3CA2344C9CC3@gmail.com> Message-ID: Bolo, I will check this out tonight and send you a working example. Just hang in there! -Aaron On 10/4/07, RubyAMF wrote: > > Morning all, > i did few test this morning, when i test my application directly without > locomotive. > > I have 2 same errors > > my config > > **** LOCAL GEMS **** > * > * > *actionmailer (1.3.3.7707, 1.3.3)* > * Service layer for easy email delivery and testing.* > * > * > *actionpack (1.13.3.7707, 1.13.3)* > * Web-flow and rendering framework putting the VC in MVC.* > * > * > *actionwebservice (1.2.3)* > * Web service support for Action Pack.* > * > * > *activerecord (1.15.3.7707, 1.15.3)* > * Implements the ActiveRecord pattern for ORM.* > * > * > *activeresource (0.9.0.7707)* > * Think Active Record for web resources.* > * > * > *activesupport (1.4.2.7707, 1.4.2)* > * Support and utility classes used by the Rails framework.* > * > * > *capistrano (2.0.0)* > * Capistrano is a utility and framework for executing commands in* > * parallel on multiple remote machines, via SSH.* > * > * > *cgi_multipart_eof_fix (2.3, 2.1)* > * Fix an exploitable bug in CGI multipart parsing.* > * > * > *daemons (1.0.8, 1.0.7)* > * A toolkit to create and control daemons in different ways* > * > * > *fastthread (1.0)* > * Optimized replacement for thread.rb primitives* > * > * > *gem_plugin (0.2.2)* > * A plugin system based only on rubygems that uses dependencies only* > * > * > *highline (1.4.0)* > * HighLine is a high-level command-line IO library.* > * > * > *mongrel (1.0.1)* > * A small fast HTTP library and server that runs Rails, Camping, Nitro* > * and Iowa apps.* > * > * > *needle (1.3.0)* > * Needle is a Dependency Injection/Inversion of Control container for* > * Ruby. It supports both type-2 (setter) and type-3 (constructor)* > * injection. It takes advantage of the dynamic nature of Ruby to* > * provide a rich and flexible approach to injecting dependencies.* > * > * > *net-sftp (1.1.0)* > * Net::SFTP is a pure-Ruby implementation of the SFTP client protocol.* > * > * > *net-ssh (1.1.2)* > * Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.* > * > * > *rails (1.2.3.7707, 1.2.3)* > * Web-application framework with template engine, control-flow layer,* > * and ORM.* > * > * > *rake (0.7.3)* > * Ruby based make-like utility.* > * > * > *sources (0.0.1)* > * This package provides download sources for remote gem installation* > * > * > *sqlite3-ruby (1.2.1)* > * SQLite3/Ruby is a module to allow Ruby scripts to interface with a* > * SQLite3 database.* > * > * > *termios (0.9.4)* > * Termios module are simple wrapper for termios(3). It can be included* > * into IO-family classes and can extend IO-family objects. In* > * addition, the methods can use as module function.* > * > * > *ruby 1.8.6 (2007-03-13 patchlevel 0) [universal-darwin8.0]* > > when i test with locomotive , i have only one error > > the method {hello_world} in class {/test_controller.rb} is not declared. > > my confg > > **** LOCAL GEMS **** > * > * > *actionmailer (1.3.3)* > * Service layer for easy email delivery and testing.* > * > * > *actionpack (1.13.3)* > * Web-flow and rendering framework putting the VC in MVC.* > * > * > *actionwebservice (1.2.3)* > * Web service support for Action Pack.* > * > * > *activerecord (1.15.3)* > * Implements the ActiveRecord pattern for ORM.* > * > * > *activesupport (1.4.2)* > * Support and utility classes used by the Rails framework.* > * > * > *BlueCloth (1.0.0)* > * BlueCloth is a Ruby implementation of Markdown, a text-to-HTML* > * conversion tool for web writers. Markdown allows you to write using* > * an easy-to-read, easy-to-write plain text format, then convert it to* > * structurally valid XHTML (or HTML).* > * > * > *builder (2.1.2, 2.1.1)* > * Builders for MarkUp.* > * > * > *camping (1.5.180)* > * minature rails for stay-at-home moms* > * > * > *capistrano (1.4.1)* > * Capistrano is a framework and utility for executing commands in* > * parallel on multiple remote machines, via SSH. The primary goal is* > * to simplify and automate the deployment of web applications.* > * > * > *capistrano-ext (1.1.1, 1.1.0)* > * Capistrano Extensions is a set of useful task libraries and methods* > * that other developers may reference in their own recipe files.* > * > * > *cgi_multipart_eof_fix (2.1)* > * Fix an exploitable bug in CGI multipart parsing which affects Ruby* > * <= 1.8.5 when multipart boundary attribute contains a non-halting* > * regular expression string.* > * > * > *daemons (1.0.6, 1.0.5)* > * A toolkit to create and control daemons in different ways* > * > * > *fastthread (1.0, 0.6.4.1)* > * Optimized replacement for thread.rb primitives* > * > * > *fcgi (0.8.7)* > * FastCGI library for Ruby.* > * > * > *feedtools (0.2.26)* > * Parsing, generation, and caching system for xml news feeds.* > * > * > *ferret (0.11.4)* > * Ruby indexing library.* > * > * > *gem_plugin (0.2.2)* > * A plugin system based only on rubygems that uses dependencies only* > * > * > *gettext (1.9.0)* > * Ruby-GetText-Package is a libary and tools to localize messages.* > * > * > *gruff (0.2.8)* > * Beautiful graphs for one or multiple datasets.* > * > * > *hoe (1.2.1, 1.2.0)* > * Hoe is a way to write Rakefiles much easier and cleaner.* > * > * > *image_science (1.1.1)* > * ImageScience is a clean and happy Ruby library that generates* > * thumbnails -- and kicks the living crap out of RMagick.* > * > * > *io-reactor (0.05)* > * An implementation of the Reactor design pattern for multiplexed* > * asynchronous single-thread IO.* > * > * > *markaby (0.5)* > * Markup as Ruby, write HTML in your native Ruby tongue* > * > * > *memcache-client (1.3.0)* > * A Ruby memcached client* > * > * > *metaid (1.0)* > * slight metaprogramming helpers* > * > * > *mongrel (1.0.1)* > * A small fast HTTP library and server that runs Rails, Camping, Nitro* > * and Iowa apps.* > * > * > *mongrel_cluster (1.0.2, 0.2.1)* > * Mongrel plugin that provides commands and Capistrano tasks for* > * managing multiple Mongrel processes.* > * > * > *mongrel_config (0.3)* > * Mongrel plugin that gives you web based config tool using Camping* > * > * > *mongrel_status (0.2.2)* > * A sample plugin that reports the status of mongrel.* > * > * > *needle (1.3.0)* > * Needle is a Dependency Injection/Inversion of Control container for* > * Ruby. It supports both type-2 (setter) and type-3 (constructor)* > * injection. It takes advantage of the dynamic nature of Ruby to* > * provide a rich and flexible approach to injecting dependencies.* > * > * > *net-sftp (1.1.0)* > * Net::SFTP is a pure-Ruby implementation of the SFTP client protocol.* > * > * > *net-ssh (1.0.10)* > * Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.* > * > * > *piston (1.3.2)* > * Piston is a utility that enables merge tracking of remote* > * repositories.* > * > * > *postgres-pr (0.4.0)* > * A pure Ruby interface to the PostgreSQL (>= 7.4) database* > * > * > *rails (1.2.3)* > * Web-application framework with template engine, control-flow layer,* > * and ORM.* > * > * > *rake (0.7.2)* > * Ruby based make-like utility.* > * > * > *rcov (0.8.0.2)* > * Code coverage analysis tool for Ruby* > * > * > *RedCloth (3.0.4, 3.0.3)* > * RedCloth is a module for using Textile and Markdown in Ruby. Textile* > * and Markdown are text formats. A very simple text format. Another* > * stab at making readable text that can be converted to HTML.* > * > * > *rmagick (1.15.4)* > * RMagick is an interface between the Ruby programming language and* > * the ImageMagick and GraphicsMagick image processing libraries.* > * > * > *rspec (1.0.5, 0.8.2)* > * RSpec-1.0.5 (r2081) - BDD for Ruby http://rspec.rubyforge.org/* > * > * > *Ruby-MemCache (0.0.1)* > * This is a client library for memcached, a high-performance* > * distributed memory cache.* > * > * > *rubyforge (0.4.1)* > * A simplistic script which automates a limited set of rubyforge* > * operations* > * > * > *RubyInline (3.6.3, 3.6.2)* > * Multi-language extension coding within ruby.* > * > * > *simple-rss (1.1)* > * A simple, flexible, extensible, and liberal RSS and Atom reader for* > * Ruby. It is designed to be backwards compatible with the standard* > * RSS parser, but will never do RSS generation.* > * > * > *sources (0.0.1)* > * This package provides download sources for remote gem installation* > * > * > *sparklines (0.4.1)* > * Tiny graphs.* > * > * > *sparklines_generator (0.2.2)* > * Sparklines generator makes a Rails controller and helper for making* > * small graphs in your web pages. See examples at* > * http://nubyonrails.topfunky.com* > * > * > *sqlite3-ruby (1.1.0.1)* > * SQLite3/Ruby is a module to allow Ruby scripts to interface with a* > * SQLite3 database. (This is _why's sensibility repack.)* > * > * > *syntax (1.0.0)* > * Syntax is Ruby library for performing simple syntax highlighting.* > * > * > *uuidtools (1.0.1)* > * Generation of UUIDs.* > * > * > *ZenTest (3.6.0, 3.4.3)* > * ZenTest provides 4 different tools and 1 library: zentest,* > * unit_diff, autotest, multiruby, and Test::Rails.* > *ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.1]* > > thanks all > > Bolo > > Le 3 oct. 07 ? 16:39, RubyAMF a ?crit : > > What are you doing to install rubyamf?this issue your seeing was fixed > in a few release back. > > > The box said requires Windows XP or greater. So I got a Mac. > > On Oct 3, 2007, at 3:30 PM, RubyAMF > wrote: > > Hi guys > > render_text problem is fixed. I was replaced all > > > render_ > > by > > render_for_ > > in action_coller.rb > > Now i have a new error is this > > ** Use CTRL-C to stop. > You have a nil object when you didn't expect it! > You might have expected an instance of ActiveRecord::Base. > The error occurred while evaluating nil.[] > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/io/read_write.rb:48:in `read_int8' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/io/amf_deserializer.rb:60:in `preamble' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:24:in `run' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:16:in `run' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:15:in `each' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/filters.rb:15:in `run' > /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ > rubyamf_core/app/gateway.rb:49:in `service' > /Users/bmichelin/Documents/Coding-Dev/test/app/controllers/ > rubyamf_controller.rb:73:in `gateway' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:1104:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ > action_controller/base.rb:1104:in `perform_action_without_filters' > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071004/410436d0/attachment-0001.html From malavoi at gmail.com Thu Oct 4 12:16:21 2007 From: malavoi at gmail.com (Bolo) Date: Thu, 4 Oct 2007 12:16:21 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> <0AB39D8E-2E78-4BB8-A6DA-3CA2344C9CC3@gmail.com> Message-ID: Thanks Arron :) Le 4 oct. 07 ? 12:07, RubyAMF a ?crit : > Bolo, I will check this out tonight and send you a working example. > Just hang in there! > -Aaron > > > On 10/4/07, RubyAMF < rubyamf-discussion at rubyforge.org> wrote: > Morning all, > > i did few test this morning, when i test my application directly > without locomotive. > > I have 2 same errors > > my config > > *** LOCAL GEMS *** > > actionmailer (1.3.3.7707, 1.3.3) > Service layer for easy email delivery and testing. > > actionpack (1.13.3.7707, 1.13.3 ) > Web-flow and rendering framework putting the VC in MVC. > > actionwebservice (1.2.3) > Web service support for Action Pack. > > activerecord (1.15.3.7707, 1.15.3 ) > Implements the ActiveRecord pattern for ORM. > > activeresource (0.9.0.7707) > Think Active Record for web resources. > > activesupport (1.4.2.7707, 1.4.2) > Support and utility classes used by the Rails framework. > > capistrano (2.0.0) > Capistrano is a utility and framework for executing commands in > parallel on multiple remote machines, via SSH. > > cgi_multipart_eof_fix (2.3, 2.1) > Fix an exploitable bug in CGI multipart parsing. > > daemons (1.0.8, 1.0.7) > A toolkit to create and control daemons in different ways > > fastthread (1.0) > Optimized replacement for thread.rb primitives > > gem_plugin (0.2.2) > A plugin system based only on rubygems that uses dependencies only > > highline (1.4.0) > HighLine is a high-level command-line IO library. > > mongrel (1.0.1) > A small fast HTTP library and server that runs Rails, Camping, > Nitro > and Iowa apps. > > needle (1.3.0) > Needle is a Dependency Injection/Inversion of Control container > for > Ruby. It supports both type-2 (setter) and type-3 (constructor) > injection. It takes advantage of the dynamic nature of Ruby to > provide a rich and flexible approach to injecting dependencies. > > net-sftp (1.1.0) > Net::SFTP is a pure-Ruby implementation of the SFTP client > protocol. > > net-ssh (1.1.2) > Net::SSH is a pure-Ruby implementation of the SSH2 client > protocol. > > rails (1.2.3.7707, 1.2.3) > Web-application framework with template engine, control-flow > layer, > and ORM. > > rake (0.7.3) > Ruby based make-like utility. > > sources (0.0.1) > This package provides download sources for remote gem installation > > sqlite3-ruby (1.2.1) > SQLite3/Ruby is a module to allow Ruby scripts to interface with a > SQLite3 database. > > termios ( 0.9.4) > Termios module are simple wrapper for termios(3). It can be > included > into IO-family classes and can extend IO-family objects. In > addition, the methods can use as module function. > > ruby 1.8.6 (2007-03-13 patchlevel 0) [ universal-darwin8.0] > > when i test with locomotive , i have only one error > > the method {hello_world} in class {/test_controller.rb} is not > declared. > > my confg > > *** LOCAL GEMS *** > > actionmailer (1.3.3) > Service layer for easy email delivery and testing. > > actionpack (1.13.3) > Web-flow and rendering framework putting the VC in MVC. > > actionwebservice (1.2.3) > Web service support for Action Pack. > > activerecord (1.15.3) > Implements the ActiveRecord pattern for ORM. > > activesupport (1.4.2) > Support and utility classes used by the Rails framework. > > BlueCloth (1.0.0) > BlueCloth is a Ruby implementation of Markdown, a text-to-HTML > conversion tool for web writers. Markdown allows you to write > using > an easy-to-read, easy-to-write plain text format, then convert > it to > structurally valid XHTML (or HTML). > > builder (2.1.2, 2.1.1) > Builders for MarkUp. > > camping (1.5.180) > minature rails for stay-at-home moms > > capistrano (1.4.1) > Capistrano is a framework and utility for executing commands in > parallel on multiple remote machines, via SSH. The primary goal is > to simplify and automate the deployment of web applications. > > capistrano-ext (1.1.1, 1.1.0) > Capistrano Extensions is a set of useful task libraries and > methods > that other developers may reference in their own recipe files. > > cgi_multipart_eof_fix (2.1) > Fix an exploitable bug in CGI multipart parsing which affects Ruby > <= 1.8.5 when multipart boundary attribute contains a non-halting > regular expression string. > > daemons (1.0.6, 1.0.5) > A toolkit to create and control daemons in different ways > > fastthread (1.0, 0.6.4.1) > Optimized replacement for thread.rb primitives > > fcgi (0.8.7) > FastCGI library for Ruby. > > feedtools (0.2.26) > Parsing, generation, and caching system for xml news feeds. > > ferret (0.11.4) > Ruby indexing library. > > gem_plugin (0.2.2) > A plugin system based only on rubygems that uses dependencies only > > gettext (1.9.0) > Ruby-GetText-Package is a libary and tools to localize messages. > > gruff (0.2.8) > Beautiful graphs for one or multiple datasets. > > hoe (1.2.1, 1.2.0) > Hoe is a way to write Rakefiles much easier and cleaner. > > image_science (1.1.1) > ImageScience is a clean and happy Ruby library that generates > thumbnails -- and kicks the living crap out of RMagick. > > io-reactor (0.05) > An implementation of the Reactor design pattern for multiplexed > asynchronous single-thread IO. > > markaby (0.5) > Markup as Ruby, write HTML in your native Ruby tongue > > memcache-client (1.3.0) > A Ruby memcached client > > metaid (1.0) > slight metaprogramming helpers > > mongrel (1.0.1) > A small fast HTTP library and server that runs Rails, Camping, > Nitro > and Iowa apps. > > mongrel_cluster (1.0.2, 0.2.1) > Mongrel plugin that provides commands and Capistrano tasks for > managing multiple Mongrel processes. > > mongrel_config (0.3) > Mongrel plugin that gives you web based config tool using Camping > > mongrel_status (0.2.2) > A sample plugin that reports the status of mongrel. > > needle (1.3.0) > Needle is a Dependency Injection/Inversion of Control container > for > Ruby. It supports both type-2 (setter) and type-3 (constructor) > injection. It takes advantage of the dynamic nature of Ruby to > provide a rich and flexible approach to injecting dependencies. > > net-sftp (1.1.0) > Net::SFTP is a pure-Ruby implementation of the SFTP client > protocol. > > net-ssh (1.0.10) > Net::SSH is a pure-Ruby implementation of the SSH2 client > protocol. > > piston (1.3.2) > Piston is a utility that enables merge tracking of remote > repositories. > > postgres-pr ( 0.4.0) > A pure Ruby interface to the PostgreSQL (>= 7.4) database > > rails (1.2.3) > Web-application framework with template engine, control-flow > layer, > and ORM. > > rake (0.7.2) > Ruby based make-like utility. > > rcov (0.8.0.2) > Code coverage analysis tool for Ruby > > RedCloth (3.0.4, 3.0.3) > RedCloth is a module for using Textile and Markdown in Ruby. > Textile > and Markdown are text formats. A very simple text format. Another > stab at making readable text that can be converted to HTML. > > rmagick (1.15.4) > RMagick is an interface between the Ruby programming language and > the ImageMagick and GraphicsMagick image processing libraries. > > rspec (1.0.5, 0.8.2) > RSpec-1.0.5 (r2081) - BDD for Ruby http://rspec.rubyforge.org/ > > Ruby-MemCache (0.0.1) > This is a client library for memcached, a high-performance > distributed memory cache. > > rubyforge (0.4.1) > A simplistic script which automates a limited set of rubyforge > operations > > RubyInline (3.6.3, 3.6.2) > Multi-language extension coding within ruby. > > simple-rss (1.1) > A simple, flexible, extensible, and liberal RSS and Atom reader > for > Ruby. It is designed to be backwards compatible with the standard > RSS parser, but will never do RSS generation. > > sources (0.0.1) > This package provides download sources for remote gem installation > > sparklines (0.4.1) > Tiny graphs. > > sparklines_generator (0.2.2) > Sparklines generator makes a Rails controller and helper for > making > small graphs in your web pages. See examples at > http://nubyonrails.topfunky.com > > sqlite3-ruby (1.1.0.1) > SQLite3/Ruby is a module to allow Ruby scripts to interface with a > SQLite3 database. (This is _why's sensibility repack.) > > syntax (1.0.0) > Syntax is Ruby library for performing simple syntax highlighting. > > uuidtools (1.0.1) > Generation of UUIDs. > > ZenTest (3.6.0, 3.4.3) > ZenTest provides 4 different tools and 1 library: zentest, > unit_diff, autotest, multiruby, and Test::Rails. > ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.1] > > thanks all > > Bolo > > Le 3 oct. 07 ? 16:39, RubyAMF a ?crit : > >> What are you doing to install rubyamf?this issue your seeing was >> fixed >> in a few release back. >> >> >> The box said requires Windows XP or greater. So I got a Mac. >> >> On Oct 3, 2007, at 3:30 PM, RubyAMF < rubyamf- >> discussion at rubyforge.org> >> wrote: >> >>> Hi guys >>> >>>> render_text problem is fixed. I was replaced all >>> >>> render_ >>> >>> by >>> >>> render_for_ >>> >>> in action_coller.rb >>> >>> Now i have a new error is this >>> >>> ** Use CTRL-C to stop. >>> You have a nil object when you didn't expect it! >>> You might have expected an instance of ActiveRecord::Base. >>> The error occurred while evaluating nil.[] >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/io/read_write.rb:48:in `read_int8' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/io/amf_deserializer.rb:60:in `preamble' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:24:in `run' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:16:in `run' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:15:in `each' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:15:in `run' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/gateway.rb:49:in `service' >>> /Users/bmichelin/Documents/Coding-Dev/test/app/controllers/ >>> rubyamf_controller.rb:73:in `gateway' >>> /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3.7707/lib/ >>> action_controller/base.rb:1104:in `send' >>> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >>> action_controller/base.rb:1104:in `perform_action_without_filters' >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071004/a7b6afe0/attachment-0001.html From seth at 4thtemple.com Thu Oct 4 12:20:17 2007 From: seth at 4thtemple.com (seth) Date: Thu, 4 Oct 2007 12:20:17 -0400 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071001164345.4cd3c473.seth@4thtemple.com> <20071003191547.64acd98e.seth@4thtemple.com> <0D1F9F5E-9C80-4FA3-A7E6-CDC3035F0A56@rubyamf.org> <20071004024817.fae900a2.seth@4thtemple.com> <20071004050838.b1f0fb61.seth@4thtemple.com> Message-ID: <20071004122017.95a93754.seth@4thtemple.com> yeah.. i fixed it to work with the has_many filter when you find one item .. like Address.find(:id => 2, :include => :user) .. i'm assuming this also fixes :has_one ..but (:all, :include => user) might still have the same wrapper problem. On Thu, 4 Oct 2007 09:02:21 -0700 RubyAMF wrote: > Did you test to see if it works still for models with :belongs_to && > :has_many ? > > > On 10/4/07, RubyAMF wrote: > > > > hey.. > > http://www.4thtemple.com/stuff/active_record_adapter.rb > > this seems to fix the array wrapper problem.. but theres another bug .. > > lets say you do something like render :amf => addr.user and in as3, if you > > do re.return.name gets confused there.. anyway i'll work on that tomorrow > > > > On Thu, 4 Oct 2007 02:48:17 -0400 > > RubyAMF wrote: > > > > > On Wed, 3 Oct 2007 19:21:41 -0700 > > > RubyAMF wrote: > > > > > > yeah.. when stepping through run_multiple/single .. it's doing > > !ar.empty? .. but ar isn't an array .. so i fixed it so it checks both > > scenerios.. > > > > > > ok = false; > > > if (ar.instance_of? Array) > > > if (!ar.empty? && !ar.nil?) > > > ok=true; > > > end > > > end > > > > > > if ((!ar.instance_of? Array && !ar.nil?) || ok) > > > > > > > > > > > > > U probably are getting a fault. Trace out fe.fault.faultString > > > > > > > > > > > > The box said requires Windows XP or greater. So I got a Mac. > > > > > > > > On Oct 3, 2007, at 4:15 PM, RubyAMF > > > > wrote: > > > > > > > > > it's funny, ssr actually interprets this situation as a faultEvent. > > > > > Not sure why .. but I'll worry about that later. > > > > > > > > > > On Mon, 1 Oct 2007 20:49:02 -0700 > > > > > RubyAMF wrote: > > > > > > > > > >> Yeah, so let's say you have these models defined: > > > > >> > > > > >> class User < ActiveRecord::Base > > > > >> has_many :addresses > > > > >> end > > > > >> > > > > >> class Address < ActiveRecord::Base > > > > >> belongs_to :user > > > > >> end > > > > >> > > > > >> Now in a controller you do this: > > > > >> class MyController < ... > > > > >> def myaction > > > > >> myadd = Address.find(1, :include => :user) > > > > >> render :amf => myadd > > > > >> end > > > > >> end > > > > >> > > > > >> > > > > >> The result in RubyAMF will be a VO, and the "user" property will be > > > > >> an > > > > >> array, and the 0 index will be the "user" object. This is incorrect > > > > >> as the > > > > >> "user" property should be the user object as expected. this happens > > > > >> in the > > > > >> active_record_adapter.. > > > > >> > > > > >> -Aaron > > > > >> > > > > >> > > > > >> On 10/1/07, RubyAMF wrote: > > > > >>> > > > > >>> I apologize for not being familiar with much of RAMF, my project > > > > >>> hasn't > > > > >>> progressed to backend developement yet.... > > > > >>> > > > > >>> But to clarify what is happening, is if a call is made to a model > > > > >>> that > > > > >>> uses foreign key constraints, the resulting object will be > > > > >>> returned to the > > > > >>> swf as an array wrapped in another array, where the real model > > > > >>> array/hash is > > > > >>> inside index 0? > > > > >>> > > > > >>> (sorry.. i havent actually gotten to the backend portion of my > > > > >>> project > > > > >>> yet..) > > > > >>> > > > > >>>> -Update the active_record_adapter to support a model association > > of > > > > >>>> :belongs_to. Currently if a model has a :belongs_to relationship, > > > > >>>> that > > > > >>>> object get's returned wrapped in an array ( > > > > >>>> re.result.myModelVO.myBelongsToProperty [0]. Which is not > > > > >>>> correct. It > > > > >>> should > > > > >>>> be re.result.myModelVO.myBelognsToProperty. This happens in the > > > > >>>> active_record_adapter#run_single method, because the payload > > > > >>>> object is > > > > >>>> initially created as an array (initla_data = []). the object > > get's > > > > >>> pushed > > > > >>>> into the array. Some time needs to be put into this to correctly > > > > >>>> alter > > > > >>> the > > > > >>>> adapter so that it won't break situations where models have > > > > >>>> a :has_many > > > > >>>> relationship as well. > > > > >>> _______________________________________________ > > > > >>> Rubyamf-discussion mailing list > > > > >>> Rubyamf-discussion at rubyforge.org > > > > >>> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > >>> > > > > >> > > > > > > > > > > > > > > > -- > > > > > > > > > > _______________________________________________ > > > > > Rubyamf-discussion mailing list > > > > > Rubyamf-discussion at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > _______________________________________________ > > > > Rubyamf-discussion mailing list > > > > Rubyamf-discussion at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > -- > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > -- > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > -- From aaron at rubyamf.org Thu Oct 4 12:23:04 2007 From: aaron at rubyamf.org (Aaron Smith) Date: Thu, 4 Oct 2007 09:23:04 -0700 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: <20071004122017.95a93754.seth@4thtemple.com> References: <20071001164345.4cd3c473.seth@4thtemple.com> <20071003191547.64acd98e.seth@4thtemple.com> <0D1F9F5E-9C80-4FA3-A7E6-CDC3035F0A56@rubyamf.org> <20071004024817.fae900a2.seth@4thtemple.com> <20071004050838.b1f0fb61.seth@4thtemple.com> <20071004122017.95a93754.seth@4thtemple.com> Message-ID: well currently the only problem was if you returned a model that had an associated model of :belongs_to.. everything else was fine. I'll take a look at you're code though and see if I can use that. Thanks man, let me know if you dig into it further. -A On 10/4/07, seth wrote: > > yeah.. i fixed it to work with the has_many filter when you find one item > .. like Address.find(:id => 2, :include => :user) .. i'm assuming this > also fixes :has_one ..but (:all, :include => user) might still have the same > wrapper problem. > > On Thu, 4 Oct 2007 09:02:21 -0700 > RubyAMF wrote: > > > Did you test to see if it works still for models with :belongs_to && > > :has_many ? > > > > > > On 10/4/07, RubyAMF wrote: > > > > > > hey.. > > > http://www.4thtemple.com/stuff/active_record_adapter.rb > > > this seems to fix the array wrapper problem.. but theres another bug > .. > > > lets say you do something like render :amf => addr.user and in as3, if > you > > > do re.return.name gets confused there.. anyway i'll work on that > tomorrow > > > > > > On Thu, 4 Oct 2007 02:48:17 -0400 > > > RubyAMF wrote: > > > > > > > On Wed, 3 Oct 2007 19:21:41 -0700 > > > > RubyAMF wrote: > > > > > > > > yeah.. when stepping through run_multiple/single .. it's doing > > > !ar.empty? .. but ar isn't an array .. so i fixed it so it checks both > > > scenerios.. > > > > > > > > ok = false; > > > > if (ar.instance_of? Array) > > > > if (!ar.empty? && !ar.nil?) > > > > ok=true; > > > > end > > > > end > > > > > > > > if ((!ar.instance_of? Array && !ar.nil?) || ok) > > > > > > > > > > > > > > > > > U probably are getting a fault. Trace out fe.fault.faultString > > > > > > > > > > > > > > > The box said requires Windows XP or greater. So I got a Mac. > > > > > > > > > > On Oct 3, 2007, at 4:15 PM, RubyAMF < > rubyamf-discussion at rubyforge.org> > > > > > wrote: > > > > > > > > > > > it's funny, ssr actually interprets this situation as a > faultEvent. > > > > > > Not sure why .. but I'll worry about that later. > > > > > > > > > > > > On Mon, 1 Oct 2007 20:49:02 -0700 > > > > > > RubyAMF wrote: > > > > > > > > > > > >> Yeah, so let's say you have these models defined: > > > > > >> > > > > > >> class User < ActiveRecord::Base > > > > > >> has_many :addresses > > > > > >> end > > > > > >> > > > > > >> class Address < ActiveRecord::Base > > > > > >> belongs_to :user > > > > > >> end > > > > > >> > > > > > >> Now in a controller you do this: > > > > > >> class MyController < ... > > > > > >> def myaction > > > > > >> myadd = Address.find(1, :include => :user) > > > > > >> render :amf => myadd > > > > > >> end > > > > > >> end > > > > > >> > > > > > >> > > > > > >> The result in RubyAMF will be a VO, and the "user" property > will be > > > > > >> an > > > > > >> array, and the 0 index will be the "user" object. This is > incorrect > > > > > >> as the > > > > > >> "user" property should be the user object as expected. this > happens > > > > > >> in the > > > > > >> active_record_adapter.. > > > > > >> > > > > > >> -Aaron > > > > > >> > > > > > >> > > > > > >> On 10/1/07, RubyAMF wrote: > > > > > >>> > > > > > >>> I apologize for not being familiar with much of RAMF, my > project > > > > > >>> hasn't > > > > > >>> progressed to backend developement yet.... > > > > > >>> > > > > > >>> But to clarify what is happening, is if a call is made to a > model > > > > > >>> that > > > > > >>> uses foreign key constraints, the resulting object will be > > > > > >>> returned to the > > > > > >>> swf as an array wrapped in another array, where the real model > > > > > >>> array/hash is > > > > > >>> inside index 0? > > > > > >>> > > > > > >>> (sorry.. i havent actually gotten to the backend portion of my > > > > > >>> project > > > > > >>> yet..) > > > > > >>> > > > > > >>>> -Update the active_record_adapter to support a model > association > > > of > > > > > >>>> :belongs_to. Currently if a model has a :belongs_to > relationship, > > > > > >>>> that > > > > > >>>> object get's returned wrapped in an array ( > > > > > >>>> re.result.myModelVO.myBelongsToProperty [0]. Which is not > > > > > >>>> correct. It > > > > > >>> should > > > > > >>>> be re.result.myModelVO.myBelognsToProperty. This happens in > the > > > > > >>>> active_record_adapter#run_single method, because the payload > > > > > >>>> object is > > > > > >>>> initially created as an array (initla_data = []). the object > > > get's > > > > > >>> pushed > > > > > >>>> into the array. Some time needs to be put into this to > correctly > > > > > >>>> alter > > > > > >>> the > > > > > >>>> adapter so that it won't break situations where models have > > > > > >>>> a :has_many > > > > > >>>> relationship as well. > > > > > >>> _______________________________________________ > > > > > >>> Rubyamf-discussion mailing list > > > > > >>> Rubyamf-discussion at rubyforge.org > > > > > >>> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > >>> > > > > > >> > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > _______________________________________________ > > > > > > Rubyamf-discussion mailing list > > > > > > Rubyamf-discussion at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > _______________________________________________ > > > > > Rubyamf-discussion mailing list > > > > > Rubyamf-discussion at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > -- > > > > > > > > _______________________________________________ > > > > Rubyamf-discussion mailing list > > > > Rubyamf-discussion at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > -- > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > -- > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071004/cbb84f6a/attachment.html From seth at 4thtemple.com Thu Oct 4 12:43:45 2007 From: seth at 4thtemple.com (seth) Date: Thu, 4 Oct 2007 12:43:45 -0400 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: References: <20071001164345.4cd3c473.seth@4thtemple.com> <20071003191547.64acd98e.seth@4thtemple.com> <0D1F9F5E-9C80-4FA3-A7E6-CDC3035F0A56@rubyamf.org> <20071004024817.fae900a2.seth@4thtemple.com> <20071004050838.b1f0fb61.seth@4thtemple.com> <20071004122017.95a93754.seth@4thtemple.com> Message-ID: <20071004124345.1102e201.seth@4thtemple.com> yeah, that's what i fixed, the :belongs_to .. but only when one item is contained in the object.. you handle that in has_single(um) function .. if multiple items are returned from :belongs_to model .. it gets handled in has_multiple(um) .. that still might have a wrapper problem. On Thu, 4 Oct 2007 09:23:04 -0700 "Aaron Smith" wrote: > well currently the only problem was if you returned a model that had an > associated model of :belongs_to.. everything else was fine. I'll take a look > at you're code though and see if I can use that. Thanks man, let me know if > you dig into it further. > > -A > > On 10/4/07, seth wrote: > > > > yeah.. i fixed it to work with the has_many filter when you find one item > > .. like Address.find(:id => 2, :include => :user) .. i'm assuming this > > also fixes :has_one ..but (:all, :include => user) might still have the same > > wrapper problem. > > > > On Thu, 4 Oct 2007 09:02:21 -0700 > > RubyAMF wrote: > > > > > Did you test to see if it works still for models with :belongs_to && > > > :has_many ? > > > > > > > > > On 10/4/07, RubyAMF wrote: > > > > > > > > hey.. > > > > http://www.4thtemple.com/stuff/active_record_adapter.rb > > > > this seems to fix the array wrapper problem.. but theres another bug > > .. > > > > lets say you do something like render :amf => addr.user and in as3, if > > you > > > > do re.return.name gets confused there.. anyway i'll work on that > > tomorrow > > > > > > > > On Thu, 4 Oct 2007 02:48:17 -0400 > > > > RubyAMF wrote: > > > > > > > > > On Wed, 3 Oct 2007 19:21:41 -0700 > > > > > RubyAMF wrote: > > > > > > > > > > yeah.. when stepping through run_multiple/single .. it's doing > > > > !ar.empty? .. but ar isn't an array .. so i fixed it so it checks both > > > > scenerios.. > > > > > > > > > > ok = false; > > > > > if (ar.instance_of? Array) > > > > > if (!ar.empty? && !ar.nil?) > > > > > ok=true; > > > > > end > > > > > end > > > > > > > > > > if ((!ar.instance_of? Array && !ar.nil?) || ok) > > > > > > > > > > > > > > > > > > > > > U probably are getting a fault. Trace out fe.fault.faultString > > > > > > > > > > > > > > > > > > The box said requires Windows XP or greater. So I got a Mac. > > > > > > > > > > > > On Oct 3, 2007, at 4:15 PM, RubyAMF < > > rubyamf-discussion at rubyforge.org> > > > > > > wrote: > > > > > > > > > > > > > it's funny, ssr actually interprets this situation as a > > faultEvent. > > > > > > > Not sure why .. but I'll worry about that later. > > > > > > > > > > > > > > On Mon, 1 Oct 2007 20:49:02 -0700 > > > > > > > RubyAMF wrote: > > > > > > > > > > > > > >> Yeah, so let's say you have these models defined: > > > > > > >> > > > > > > >> class User < ActiveRecord::Base > > > > > > >> has_many :addresses > > > > > > >> end > > > > > > >> > > > > > > >> class Address < ActiveRecord::Base > > > > > > >> belongs_to :user > > > > > > >> end > > > > > > >> > > > > > > >> Now in a controller you do this: > > > > > > >> class MyController < ... > > > > > > >> def myaction > > > > > > >> myadd = Address.find(1, :include => :user) > > > > > > >> render :amf => myadd > > > > > > >> end > > > > > > >> end > > > > > > >> > > > > > > >> > > > > > > >> The result in RubyAMF will be a VO, and the "user" property > > will be > > > > > > >> an > > > > > > >> array, and the 0 index will be the "user" object. This is > > incorrect > > > > > > >> as the > > > > > > >> "user" property should be the user object as expected. this > > happens > > > > > > >> in the > > > > > > >> active_record_adapter.. > > > > > > >> > > > > > > >> -Aaron > > > > > > >> > > > > > > >> > > > > > > >> On 10/1/07, RubyAMF wrote: > > > > > > >>> > > > > > > >>> I apologize for not being familiar with much of RAMF, my > > project > > > > > > >>> hasn't > > > > > > >>> progressed to backend developement yet.... > > > > > > >>> > > > > > > >>> But to clarify what is happening, is if a call is made to a > > model > > > > > > >>> that > > > > > > >>> uses foreign key constraints, the resulting object will be > > > > > > >>> returned to the > > > > > > >>> swf as an array wrapped in another array, where the real model > > > > > > >>> array/hash is > > > > > > >>> inside index 0? > > > > > > >>> > > > > > > >>> (sorry.. i havent actually gotten to the backend portion of my > > > > > > >>> project > > > > > > >>> yet..) > > > > > > >>> > > > > > > >>>> -Update the active_record_adapter to support a model > > association > > > > of > > > > > > >>>> :belongs_to. Currently if a model has a :belongs_to > > relationship, > > > > > > >>>> that > > > > > > >>>> object get's returned wrapped in an array ( > > > > > > >>>> re.result.myModelVO.myBelongsToProperty [0]. Which is not > > > > > > >>>> correct. It > > > > > > >>> should > > > > > > >>>> be re.result.myModelVO.myBelognsToProperty. This happens in > > the > > > > > > >>>> active_record_adapter#run_single method, because the payload > > > > > > >>>> object is > > > > > > >>>> initially created as an array (initla_data = []). the object > > > > get's > > > > > > >>> pushed > > > > > > >>>> into the array. Some time needs to be put into this to > > correctly > > > > > > >>>> alter > > > > > > >>> the > > > > > > >>>> adapter so that it won't break situations where models have > > > > > > >>>> a :has_many > > > > > > >>>> relationship as well. > > > > > > >>> _______________________________________________ > > > > > > >>> Rubyamf-discussion mailing list > > > > > > >>> Rubyamf-discussion at rubyforge.org > > > > > > >>> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > >>> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Rubyamf-discussion mailing list > > > > > > > Rubyamf-discussion at rubyforge.org > > > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > _______________________________________________ > > > > > > Rubyamf-discussion mailing list > > > > > > Rubyamf-discussion at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > > > > -- > > > > > > > > > > _______________________________________________ > > > > > Rubyamf-discussion mailing list > > > > > Rubyamf-discussion at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > -- > > > > > > > > _______________________________________________ > > > > Rubyamf-discussion mailing list > > > > Rubyamf-discussion at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > > -- > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > -- From aaron at rubyamf.org Thu Oct 4 13:35:10 2007 From: aaron at rubyamf.org (Aaron Smith) Date: Thu, 4 Oct 2007 10:35:10 -0700 Subject: [RubyAMF] RubyAMF - developers wanted In-Reply-To: <20071004124345.1102e201.seth@4thtemple.com> References: <20071003191547.64acd98e.seth@4thtemple.com> <0D1F9F5E-9C80-4FA3-A7E6-CDC3035F0A56@rubyamf.org> <20071004024817.fae900a2.seth@4thtemple.com> <20071004050838.b1f0fb61.seth@4thtemple.com> <20071004122017.95a93754.seth@4thtemple.com> <20071004124345.1102e201.seth@4thtemple.com> Message-ID: the :belongs_to property should only ever be one object. I think we're good, I just need to test it. On 10/4/07, seth wrote: > > yeah, that's what i fixed, the :belongs_to .. but only when one item is > contained in the object.. you handle that in has_single(um) function .. if > multiple items are returned from :belongs_to model .. it gets handled in > has_multiple(um) .. that still might have a wrapper problem. > > On Thu, 4 Oct 2007 09:23:04 -0700 > "Aaron Smith" wrote: > > > well currently the only problem was if you returned a model that had an > > associated model of :belongs_to.. everything else was fine. I'll take a > look > > at you're code though and see if I can use that. Thanks man, let me know > if > > you dig into it further. > > > > -A > > > > On 10/4/07, seth wrote: > > > > > > yeah.. i fixed it to work with the has_many filter when you find one > item > > > .. like Address.find(:id => 2, :include => :user) .. i'm assuming > this > > > also fixes :has_one ..but (:all, :include => user) might still have > the same > > > wrapper problem. > > > > > > On Thu, 4 Oct 2007 09:02:21 -0700 > > > RubyAMF wrote: > > > > > > > Did you test to see if it works still for models with :belongs_to && > > > > :has_many ? > > > > > > > > > > > > On 10/4/07, RubyAMF wrote: > > > > > > > > > > hey.. > > > > > http://www.4thtemple.com/stuff/active_record_adapter.rb > > > > > this seems to fix the array wrapper problem.. but theres another > bug > > > .. > > > > > lets say you do something like render :amf => addr.user and in > as3, if > > > you > > > > > do re.return.name gets confused there.. anyway i'll work on that > > > tomorrow > > > > > > > > > > On Thu, 4 Oct 2007 02:48:17 -0400 > > > > > RubyAMF wrote: > > > > > > > > > > > On Wed, 3 Oct 2007 19:21:41 -0700 > > > > > > RubyAMF wrote: > > > > > > > > > > > > yeah.. when stepping through run_multiple/single .. it's doing > > > > > !ar.empty? .. but ar isn't an array .. so i fixed it so it checks > both > > > > > scenerios.. > > > > > > > > > > > > ok = false; > > > > > > if (ar.instance_of? Array) > > > > > > if (!ar.empty? && !ar.nil?) > > > > > > ok=true; > > > > > > end > > > > > > end > > > > > > > > > > > > if ((!ar.instance_of? Array && !ar.nil?) || ok) > > > > > > > > > > > > > > > > > > > > > > > > > U probably are getting a fault. Trace out fe.fault.faultString > > > > > > > > > > > > > > > > > > > > > The box said requires Windows XP or greater. So I got a Mac. > > > > > > > > > > > > > > On Oct 3, 2007, at 4:15 PM, RubyAMF < > > > rubyamf-discussion at rubyforge.org> > > > > > > > wrote: > > > > > > > > > > > > > > > it's funny, ssr actually interprets this situation as a > > > faultEvent. > > > > > > > > Not sure why .. but I'll worry about that later. > > > > > > > > > > > > > > > > On Mon, 1 Oct 2007 20:49:02 -0700 > > > > > > > > RubyAMF wrote: > > > > > > > > > > > > > > > >> Yeah, so let's say you have these models defined: > > > > > > > >> > > > > > > > >> class User < ActiveRecord::Base > > > > > > > >> has_many :addresses > > > > > > > >> end > > > > > > > >> > > > > > > > >> class Address < ActiveRecord::Base > > > > > > > >> belongs_to :user > > > > > > > >> end > > > > > > > >> > > > > > > > >> Now in a controller you do this: > > > > > > > >> class MyController < ... > > > > > > > >> def myaction > > > > > > > >> myadd = Address.find(1, :include => :user) > > > > > > > >> render :amf => myadd > > > > > > > >> end > > > > > > > >> end > > > > > > > >> > > > > > > > >> > > > > > > > >> The result in RubyAMF will be a VO, and the "user" property > > > will be > > > > > > > >> an > > > > > > > >> array, and the 0 index will be the "user" object. This is > > > incorrect > > > > > > > >> as the > > > > > > > >> "user" property should be the user object as expected. this > > > happens > > > > > > > >> in the > > > > > > > >> active_record_adapter.. > > > > > > > >> > > > > > > > >> -Aaron > > > > > > > >> > > > > > > > >> > > > > > > > >> On 10/1/07, RubyAMF > wrote: > > > > > > > >>> > > > > > > > >>> I apologize for not being familiar with much of RAMF, my > > > project > > > > > > > >>> hasn't > > > > > > > >>> progressed to backend developement yet.... > > > > > > > >>> > > > > > > > >>> But to clarify what is happening, is if a call is made to > a > > > model > > > > > > > >>> that > > > > > > > >>> uses foreign key constraints, the resulting object will be > > > > > > > >>> returned to the > > > > > > > >>> swf as an array wrapped in another array, where the real > model > > > > > > > >>> array/hash is > > > > > > > >>> inside index 0? > > > > > > > >>> > > > > > > > >>> (sorry.. i havent actually gotten to the backend portion > of my > > > > > > > >>> project > > > > > > > >>> yet..) > > > > > > > >>> > > > > > > > >>>> -Update the active_record_adapter to support a model > > > association > > > > > of > > > > > > > >>>> :belongs_to. Currently if a model has a :belongs_to > > > relationship, > > > > > > > >>>> that > > > > > > > >>>> object get's returned wrapped in an array ( > > > > > > > >>>> re.result.myModelVO.myBelongsToProperty [0]. Which is not > > > > > > > >>>> correct. It > > > > > > > >>> should > > > > > > > >>>> be re.result.myModelVO.myBelognsToProperty. This happens > in > > > the > > > > > > > >>>> active_record_adapter#run_single method, because the > payload > > > > > > > >>>> object is > > > > > > > >>>> initially created as an array (initla_data = []). the > object > > > > > get's > > > > > > > >>> pushed > > > > > > > >>>> into the array. Some time needs to be put into this to > > > correctly > > > > > > > >>>> alter > > > > > > > >>> the > > > > > > > >>>> adapter so that it won't break situations where models > have > > > > > > > >>>> a :has_many > > > > > > > >>>> relationship as well. > > > > > > > >>> _______________________________________________ > > > > > > > >>> Rubyamf-discussion mailing list > > > > > > > >>> Rubyamf-discussion at rubyforge.org > > > > > > > >>> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > >>> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > Rubyamf-discussion mailing list > > > > > > > > Rubyamf-discussion at rubyforge.org > > > > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > _______________________________________________ > > > > > > > Rubyamf-discussion mailing list > > > > > > > Rubyamf-discussion at rubyforge.org > > > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > _______________________________________________ > > > > > > Rubyamf-discussion mailing list > > > > > > Rubyamf-discussion at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > > > > -- > > > > > > > > > > _______________________________________________ > > > > > Rubyamf-discussion mailing list > > > > > Rubyamf-discussion at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > > > > > > > -- > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > -- > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071004/603ca287/attachment.html From seth at 4thtemple.com Thu Oct 4 15:36:14 2007 From: seth at 4thtemple.com (seth) Date: Thu, 4 Oct 2007 15:36:14 -0400 Subject: [RubyAMF] moving along the todo list... In-Reply-To: References: <20071001153907.ce6eaeb0.seth@4thtemple.com> Message-ID: <20071004153614.cddf746f.seth@4thtemple.com> can you give me some example of how to replicate this problem? On Mon, 1 Oct 2007 12:57:40 -0700 RubyAMF wrote: > -production mode unsafe? There are still some situations where rubyamf > requests are causing production mode problems. The exact problem lies in the > util/action_controller.rb. the one conditional (if options.nil?) render_file > etc. -- From beingthexemplary at gmail.com Thu Oct 4 15:58:46 2007 From: beingthexemplary at gmail.com (aaron smith) Date: Thu, 4 Oct 2007 12:58:46 -0700 Subject: [RubyAMF] moving along the todo list... In-Reply-To: <20071004153614.cddf746f.seth@4thtemple.com> References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071004153614.cddf746f.seth@4thtemple.com> Message-ID: So first make a simple rails app. Then test out the HTML version, Then make a rubyamf request to it. then check the HTML version again. Do this all while running in production, and without restarting rails. Chances are the HTML version will be broken after the rubyamf reqeust. -Aaron On 10/4/07, seth wrote: > > can you give me some example of how to replicate this problem? > > On Mon, 1 Oct 2007 12:57:40 -0700 > RubyAMF wrote: > > > -production mode unsafe? There are still some situations where rubyamf > > requests are causing production mode problems. The exact problem lies in > the > > util/action_controller.rb. the one conditional (if options.nil?) > render_file > > etc. > > -- > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071004/0bfe10f2/attachment-0001.html From seth at 4thtemple.com Thu Oct 4 17:22:20 2007 From: seth at 4thtemple.com (seth) Date: Thu, 4 Oct 2007 17:22:20 -0400 Subject: [RubyAMF] moving along the todo list... In-Reply-To: References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071004153614.cddf746f.seth@4thtemple.com> Message-ID: <20071004172220.aaa95892.seth@4thtemple.com> ahh ok..hopefully i can get cracking on it late night.. my gentoo dev box is being difficult due to library linking errors during update......... On Thu, 4 Oct 2007 12:58:46 -0700 "aaron smith" wrote: > So first make a simple rails app. > > Then test out the HTML version, > Then make a rubyamf request to it. > then check the HTML version again. > > Do this all while running in production, and without restarting rails. > > Chances are the HTML version will be broken after the rubyamf reqeust. > > -Aaron > > On 10/4/07, seth wrote: > > > > can you give me some example of how to replicate this problem? > > > > On Mon, 1 Oct 2007 12:57:40 -0700 > > RubyAMF wrote: > > > > > -production mode unsafe? There are still some situations where rubyamf > > > requests are causing production mode problems. The exact problem lies in > > the > > > util/action_controller.rb. the one conditional (if options.nil?) > > render_file > > > etc. > > > > -- > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > -- From malavoi at gmail.com Fri Oct 5 07:51:44 2007 From: malavoi at gmail.com (Bolo) Date: Fri, 5 Oct 2007 07:51:44 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> <0AB39D8E-2E78-4BB8-A6DA-3CA2344C9CC3@gmail.com> Message-ID: <3384ACFB-1C55-49DD-82DB-C898518EF659@gmail.com> always me :) rails-1.2.4 works with RubyAMF ? it's the official version, i can ask the question :) Le 4 oct. 07 ? 12:07, RubyAMF a ?crit : > Bolo, I will check this out tonight and send you a working example. > Just hang in there! > -Aaron > > > On 10/4/07, RubyAMF < rubyamf-discussion at rubyforge.org> wrote: > Morning all, > > i did few test this morning, when i test my application directly > without locomotive. > > I have 2 same errors > > my config > > *** LOCAL GEMS *** > > actionmailer (1.3.3.7707, 1.3.3) > Service layer for easy email delivery and testing. > > actionpack (1.13.3.7707, 1.13.3 ) > Web-flow and rendering framework putting the VC in MVC. > > actionwebservice (1.2.3) > Web service support for Action Pack. > > activerecord (1.15.3.7707, 1.15.3 ) > Implements the ActiveRecord pattern for ORM. > > activeresource (0.9.0.7707) > Think Active Record for web resources. > > activesupport (1.4.2.7707, 1.4.2) > Support and utility classes used by the Rails framework. > > capistrano (2.0.0) > Capistrano is a utility and framework for executing commands in > parallel on multiple remote machines, via SSH. > > cgi_multipart_eof_fix (2.3, 2.1) > Fix an exploitable bug in CGI multipart parsing. > > daemons (1.0.8, 1.0.7) > A toolkit to create and control daemons in different ways > > fastthread (1.0) > Optimized replacement for thread.rb primitives > > gem_plugin (0.2.2) > A plugin system based only on rubygems that uses dependencies only > > highline (1.4.0) > HighLine is a high-level command-line IO library. > > mongrel (1.0.1) > A small fast HTTP library and server that runs Rails, Camping, > Nitro > and Iowa apps. > > needle (1.3.0) > Needle is a Dependency Injection/Inversion of Control container > for > Ruby. It supports both type-2 (setter) and type-3 (constructor) > injection. It takes advantage of the dynamic nature of Ruby to > provide a rich and flexible approach to injecting dependencies. > > net-sftp (1.1.0) > Net::SFTP is a pure-Ruby implementation of the SFTP client > protocol. > > net-ssh (1.1.2) > Net::SSH is a pure-Ruby implementation of the SSH2 client > protocol. > > rails (1.2.3.7707, 1.2.3) > Web-application framework with template engine, control-flow > layer, > and ORM. > > rake (0.7.3) > Ruby based make-like utility. > > sources (0.0.1) > This package provides download sources for remote gem installation > > sqlite3-ruby (1.2.1) > SQLite3/Ruby is a module to allow Ruby scripts to interface with a > SQLite3 database. > > termios ( 0.9.4) > Termios module are simple wrapper for termios(3). It can be > included > into IO-family classes and can extend IO-family objects. In > addition, the methods can use as module function. > > ruby 1.8.6 (2007-03-13 patchlevel 0) [ universal-darwin8.0] > > when i test with locomotive , i have only one error > > the method {hello_world} in class {/test_controller.rb} is not > declared. > > my confg > > *** LOCAL GEMS *** > > actionmailer (1.3.3) > Service layer for easy email delivery and testing. > > actionpack (1.13.3) > Web-flow and rendering framework putting the VC in MVC. > > actionwebservice (1.2.3) > Web service support for Action Pack. > > activerecord (1.15.3) > Implements the ActiveRecord pattern for ORM. > > activesupport (1.4.2) > Support and utility classes used by the Rails framework. > > BlueCloth (1.0.0) > BlueCloth is a Ruby implementation of Markdown, a text-to-HTML > conversion tool for web writers. Markdown allows you to write > using > an easy-to-read, easy-to-write plain text format, then convert > it to > structurally valid XHTML (or HTML). > > builder (2.1.2, 2.1.1) > Builders for MarkUp. > > camping (1.5.180) > minature rails for stay-at-home moms > > capistrano (1.4.1) > Capistrano is a framework and utility for executing commands in > parallel on multiple remote machines, via SSH. The primary goal is > to simplify and automate the deployment of web applications. > > capistrano-ext (1.1.1, 1.1.0) > Capistrano Extensions is a set of useful task libraries and > methods > that other developers may reference in their own recipe files. > > cgi_multipart_eof_fix (2.1) > Fix an exploitable bug in CGI multipart parsing which affects Ruby > <= 1.8.5 when multipart boundary attribute contains a non-halting > regular expression string. > > daemons (1.0.6, 1.0.5) > A toolkit to create and control daemons in different ways > > fastthread (1.0, 0.6.4.1) > Optimized replacement for thread.rb primitives > > fcgi (0.8.7) > FastCGI library for Ruby. > > feedtools (0.2.26) > Parsing, generation, and caching system for xml news feeds. > > ferret (0.11.4) > Ruby indexing library. > > gem_plugin (0.2.2) > A plugin system based only on rubygems that uses dependencies only > > gettext (1.9.0) > Ruby-GetText-Package is a libary and tools to localize messages. > > gruff (0.2.8) > Beautiful graphs for one or multiple datasets. > > hoe (1.2.1, 1.2.0) > Hoe is a way to write Rakefiles much easier and cleaner. > > image_science (1.1.1) > ImageScience is a clean and happy Ruby library that generates > thumbnails -- and kicks the living crap out of RMagick. > > io-reactor (0.05) > An implementation of the Reactor design pattern for multiplexed > asynchronous single-thread IO. > > markaby (0.5) > Markup as Ruby, write HTML in your native Ruby tongue > > memcache-client (1.3.0) > A Ruby memcached client > > metaid (1.0) > slight metaprogramming helpers > > mongrel (1.0.1) > A small fast HTTP library and server that runs Rails, Camping, > Nitro > and Iowa apps. > > mongrel_cluster (1.0.2, 0.2.1) > Mongrel plugin that provides commands and Capistrano tasks for > managing multiple Mongrel processes. > > mongrel_config (0.3) > Mongrel plugin that gives you web based config tool using Camping > > mongrel_status (0.2.2) > A sample plugin that reports the status of mongrel. > > needle (1.3.0) > Needle is a Dependency Injection/Inversion of Control container > for > Ruby. It supports both type-2 (setter) and type-3 (constructor) > injection. It takes advantage of the dynamic nature of Ruby to > provide a rich and flexible approach to injecting dependencies. > > net-sftp (1.1.0) > Net::SFTP is a pure-Ruby implementation of the SFTP client > protocol. > > net-ssh (1.0.10) > Net::SSH is a pure-Ruby implementation of the SSH2 client > protocol. > > piston (1.3.2) > Piston is a utility that enables merge tracking of remote > repositories. > > postgres-pr ( 0.4.0) > A pure Ruby interface to the PostgreSQL (>= 7.4) database > > rails (1.2.3) > Web-application framework with template engine, control-flow > layer, > and ORM. > > rake (0.7.2) > Ruby based make-like utility. > > rcov (0.8.0.2) > Code coverage analysis tool for Ruby > > RedCloth (3.0.4, 3.0.3) > RedCloth is a module for using Textile and Markdown in Ruby. > Textile > and Markdown are text formats. A very simple text format. Another > stab at making readable text that can be converted to HTML. > > rmagick (1.15.4) > RMagick is an interface between the Ruby programming language and > the ImageMagick and GraphicsMagick image processing libraries. > > rspec (1.0.5, 0.8.2) > RSpec-1.0.5 (r2081) - BDD for Ruby http://rspec.rubyforge.org/ > > Ruby-MemCache (0.0.1) > This is a client library for memcached, a high-performance > distributed memory cache. > > rubyforge (0.4.1) > A simplistic script which automates a limited set of rubyforge > operations > > RubyInline (3.6.3, 3.6.2) > Multi-language extension coding within ruby. > > simple-rss (1.1) > A simple, flexible, extensible, and liberal RSS and Atom reader > for > Ruby. It is designed to be backwards compatible with the standard > RSS parser, but will never do RSS generation. > > sources (0.0.1) > This package provides download sources for remote gem installation > > sparklines (0.4.1) > Tiny graphs. > > sparklines_generator (0.2.2) > Sparklines generator makes a Rails controller and helper for > making > small graphs in your web pages. See examples at > http://nubyonrails.topfunky.com > > sqlite3-ruby (1.1.0.1) > SQLite3/Ruby is a module to allow Ruby scripts to interface with a > SQLite3 database. (This is _why's sensibility repack.) > > syntax (1.0.0) > Syntax is Ruby library for performing simple syntax highlighting. > > uuidtools (1.0.1) > Generation of UUIDs. > > ZenTest (3.6.0, 3.4.3) > ZenTest provides 4 different tools and 1 library: zentest, > unit_diff, autotest, multiruby, and Test::Rails. > ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.1] > > thanks all > > Bolo > > Le 3 oct. 07 ? 16:39, RubyAMF a ?crit : > >> What are you doing to install rubyamf?this issue your seeing was >> fixed >> in a few release back. >> >> >> The box said requires Windows XP or greater. So I got a Mac. >> >> On Oct 3, 2007, at 3:30 PM, RubyAMF < rubyamf- >> discussion at rubyforge.org> >> wrote: >> >>> Hi guys >>> >>>> render_text problem is fixed. I was replaced all >>> >>> render_ >>> >>> by >>> >>> render_for_ >>> >>> in action_coller.rb >>> >>> Now i have a new error is this >>> >>> ** Use CTRL-C to stop. >>> You have a nil object when you didn't expect it! >>> You might have expected an instance of ActiveRecord::Base. >>> The error occurred while evaluating nil.[] >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/io/read_write.rb:48:in `read_int8' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/io/amf_deserializer.rb:60:in `preamble' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:24:in `run' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:16:in `run' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:15:in `each' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:15:in `run' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/gateway.rb:49:in `service' >>> /Users/bmichelin/Documents/Coding-Dev/test/app/controllers/ >>> rubyamf_controller.rb:73:in `gateway' >>> /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3.7707/lib/ >>> action_controller/base.rb:1104:in `send' >>> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >>> action_controller/base.rb:1104:in `perform_action_without_filters' >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071005/0cb8668e/attachment-0001.html From malavoi at gmail.com Fri Oct 5 18:19:00 2007 From: malavoi at gmail.com (Bolo) Date: Fri, 5 Oct 2007 18:19:00 -0400 Subject: [RubyAMF] first application , big trouble In-Reply-To: References: <5C333AD3-0D45-40AC-9042-D5E9CDC9A086@gmail.com> <7ADFEBEF-858F-4B58-BF10-5A9F1128C13D@gmail.com> <0AB39D8E-2E78-4BB8-A6DA-3CA2344C9CC3@gmail.com> Message-ID: Hi Aaron don't forget me for an exemple and if you can give me an exemple 1.2.4 ( i will be great ) thanks Le 4 oct. 07 ? 12:07, RubyAMF a ?crit : > Bolo, I will check this out tonight and send you a working example. > Just hang in there! > -Aaron > > > On 10/4/07, RubyAMF < rubyamf-discussion at rubyforge.org> wrote: > Morning all, > > i did few test this morning, when i test my application directly > without locomotive. > > I have 2 same errors > > my config > > *** LOCAL GEMS *** > > actionmailer (1.3.3.7707, 1.3.3) > Service layer for easy email delivery and testing. > > actionpack (1.13.3.7707, 1.13.3 ) > Web-flow and rendering framework putting the VC in MVC. > > actionwebservice (1.2.3) > Web service support for Action Pack. > > activerecord (1.15.3.7707, 1.15.3 ) > Implements the ActiveRecord pattern for ORM. > > activeresource (0.9.0.7707) > Think Active Record for web resources. > > activesupport (1.4.2.7707, 1.4.2) > Support and utility classes used by the Rails framework. > > capistrano (2.0.0) > Capistrano is a utility and framework for executing commands in > parallel on multiple remote machines, via SSH. > > cgi_multipart_eof_fix (2.3, 2.1) > Fix an exploitable bug in CGI multipart parsing. > > daemons (1.0.8, 1.0.7) > A toolkit to create and control daemons in different ways > > fastthread (1.0) > Optimized replacement for thread.rb primitives > > gem_plugin (0.2.2) > A plugin system based only on rubygems that uses dependencies only > > highline (1.4.0) > HighLine is a high-level command-line IO library. > > mongrel (1.0.1) > A small fast HTTP library and server that runs Rails, Camping, > Nitro > and Iowa apps. > > needle (1.3.0) > Needle is a Dependency Injection/Inversion of Control container > for > Ruby. It supports both type-2 (setter) and type-3 (constructor) > injection. It takes advantage of the dynamic nature of Ruby to > provide a rich and flexible approach to injecting dependencies. > > net-sftp (1.1.0) > Net::SFTP is a pure-Ruby implementation of the SFTP client > protocol. > > net-ssh (1.1.2) > Net::SSH is a pure-Ruby implementation of the SSH2 client > protocol. > > rails (1.2.3.7707, 1.2.3) > Web-application framework with template engine, control-flow > layer, > and ORM. > > rake (0.7.3) > Ruby based make-like utility. > > sources (0.0.1) > This package provides download sources for remote gem installation > > sqlite3-ruby (1.2.1) > SQLite3/Ruby is a module to allow Ruby scripts to interface with a > SQLite3 database. > > termios ( 0.9.4) > Termios module are simple wrapper for termios(3). It can be > included > into IO-family classes and can extend IO-family objects. In > addition, the methods can use as module function. > > ruby 1.8.6 (2007-03-13 patchlevel 0) [ universal-darwin8.0] > > when i test with locomotive , i have only one error > > the method {hello_world} in class {/test_controller.rb} is not > declared. > > my confg > > *** LOCAL GEMS *** > > actionmailer (1.3.3) > Service layer for easy email delivery and testing. > > actionpack (1.13.3) > Web-flow and rendering framework putting the VC in MVC. > > actionwebservice (1.2.3) > Web service support for Action Pack. > > activerecord (1.15.3) > Implements the ActiveRecord pattern for ORM. > > activesupport (1.4.2) > Support and utility classes used by the Rails framework. > > BlueCloth (1.0.0) > BlueCloth is a Ruby implementation of Markdown, a text-to-HTML > conversion tool for web writers. Markdown allows you to write > using > an easy-to-read, easy-to-write plain text format, then convert > it to > structurally valid XHTML (or HTML). > > builder (2.1.2, 2.1.1) > Builders for MarkUp. > > camping (1.5.180) > minature rails for stay-at-home moms > > capistrano (1.4.1) > Capistrano is a framework and utility for executing commands in > parallel on multiple remote machines, via SSH. The primary goal is > to simplify and automate the deployment of web applications. > > capistrano-ext (1.1.1, 1.1.0) > Capistrano Extensions is a set of useful task libraries and > methods > that other developers may reference in their own recipe files. > > cgi_multipart_eof_fix (2.1) > Fix an exploitable bug in CGI multipart parsing which affects Ruby > <= 1.8.5 when multipart boundary attribute contains a non-halting > regular expression string. > > daemons (1.0.6, 1.0.5) > A toolkit to create and control daemons in different ways > > fastthread (1.0, 0.6.4.1) > Optimized replacement for thread.rb primitives > > fcgi (0.8.7) > FastCGI library for Ruby. > > feedtools (0.2.26) > Parsing, generation, and caching system for xml news feeds. > > ferret (0.11.4) > Ruby indexing library. > > gem_plugin (0.2.2) > A plugin system based only on rubygems that uses dependencies only > > gettext (1.9.0) > Ruby-GetText-Package is a libary and tools to localize messages. > > gruff (0.2.8) > Beautiful graphs for one or multiple datasets. > > hoe (1.2.1, 1.2.0) > Hoe is a way to write Rakefiles much easier and cleaner. > > image_science (1.1.1) > ImageScience is a clean and happy Ruby library that generates > thumbnails -- and kicks the living crap out of RMagick. > > io-reactor (0.05) > An implementation of the Reactor design pattern for multiplexed > asynchronous single-thread IO. > > markaby (0.5) > Markup as Ruby, write HTML in your native Ruby tongue > > memcache-client (1.3.0) > A Ruby memcached client > > metaid (1.0) > slight metaprogramming helpers > > mongrel (1.0.1) > A small fast HTTP library and server that runs Rails, Camping, > Nitro > and Iowa apps. > > mongrel_cluster (1.0.2, 0.2.1) > Mongrel plugin that provides commands and Capistrano tasks for > managing multiple Mongrel processes. > > mongrel_config (0.3) > Mongrel plugin that gives you web based config tool using Camping > > mongrel_status (0.2.2) > A sample plugin that reports the status of mongrel. > > needle (1.3.0) > Needle is a Dependency Injection/Inversion of Control container > for > Ruby. It supports both type-2 (setter) and type-3 (constructor) > injection. It takes advantage of the dynamic nature of Ruby to > provide a rich and flexible approach to injecting dependencies. > > net-sftp (1.1.0) > Net::SFTP is a pure-Ruby implementation of the SFTP client > protocol. > > net-ssh (1.0.10) > Net::SSH is a pure-Ruby implementation of the SSH2 client > protocol. > > piston (1.3.2) > Piston is a utility that enables merge tracking of remote > repositories. > > postgres-pr ( 0.4.0) > A pure Ruby interface to the PostgreSQL (>= 7.4) database > > rails (1.2.3) > Web-application framework with template engine, control-flow > layer, > and ORM. > > rake (0.7.2) > Ruby based make-like utility. > > rcov (0.8.0.2) > Code coverage analysis tool for Ruby > > RedCloth (3.0.4, 3.0.3) > RedCloth is a module for using Textile and Markdown in Ruby. > Textile > and Markdown are text formats. A very simple text format. Another > stab at making readable text that can be converted to HTML. > > rmagick (1.15.4) > RMagick is an interface between the Ruby programming language and > the ImageMagick and GraphicsMagick image processing libraries. > > rspec (1.0.5, 0.8.2) > RSpec-1.0.5 (r2081) - BDD for Ruby http://rspec.rubyforge.org/ > > Ruby-MemCache (0.0.1) > This is a client library for memcached, a high-performance > distributed memory cache. > > rubyforge (0.4.1) > A simplistic script which automates a limited set of rubyforge > operations > > RubyInline (3.6.3, 3.6.2) > Multi-language extension coding within ruby. > > simple-rss (1.1) > A simple, flexible, extensible, and liberal RSS and Atom reader > for > Ruby. It is designed to be backwards compatible with the standard > RSS parser, but will never do RSS generation. > > sources (0.0.1) > This package provides download sources for remote gem installation > > sparklines (0.4.1) > Tiny graphs. > > sparklines_generator (0.2.2) > Sparklines generator makes a Rails controller and helper for > making > small graphs in your web pages. See examples at > http://nubyonrails.topfunky.com > > sqlite3-ruby (1.1.0.1) > SQLite3/Ruby is a module to allow Ruby scripts to interface with a > SQLite3 database. (This is _why's sensibility repack.) > > syntax (1.0.0) > Syntax is Ruby library for performing simple syntax highlighting. > > uuidtools (1.0.1) > Generation of UUIDs. > > ZenTest (3.6.0, 3.4.3) > ZenTest provides 4 different tools and 1 library: zentest, > unit_diff, autotest, multiruby, and Test::Rails. > ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.1] > > thanks all > > Bolo > > Le 3 oct. 07 ? 16:39, RubyAMF a ?crit : > >> What are you doing to install rubyamf?this issue your seeing was >> fixed >> in a few release back. >> >> >> The box said requires Windows XP or greater. So I got a Mac. >> >> On Oct 3, 2007, at 3:30 PM, RubyAMF < rubyamf- >> discussion at rubyforge.org> >> wrote: >> >>> Hi guys >>> >>>> render_text problem is fixed. I was replaced all >>> >>> render_ >>> >>> by >>> >>> render_for_ >>> >>> in action_coller.rb >>> >>> Now i have a new error is this >>> >>> ** Use CTRL-C to stop. >>> You have a nil object when you didn't expect it! >>> You might have expected an instance of ActiveRecord::Base. >>> The error occurred while evaluating nil.[] >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/io/read_write.rb:48:in `read_int8' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/io/amf_deserializer.rb:60:in `preamble' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/io/amf_deserializer.rb:36:in `rubyamf_read' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:24:in `run' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:16:in `run' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:15:in `each' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/filters.rb:15:in `run' >>> /Users/bmichelin/Documents/Coding-Dev/test/vendor/plugins/rubyamf/ >>> rubyamf_core/app/gateway.rb:49:in `service' >>> /Users/bmichelin/Documents/Coding-Dev/test/app/controllers/ >>> rubyamf_controller.rb:73:in `gateway' >>> /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3.7707/lib/ >>> action_controller/base.rb:1104:in `send' >>> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3.7707/lib/ >>> action_controller/base.rb:1104:in `perform_action_without_filters' >> _______________________________________________ >> Rubyamf-discussion mailing list >> Rubyamf-discussion at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071005/a1ac52ee/attachment-0001.html From seth at 4thtemple.com Fri Oct 5 19:07:47 2007 From: seth at 4thtemple.com (seth) Date: Fri, 5 Oct 2007 19:07:47 -0400 Subject: [RubyAMF] moving along the todo list... In-Reply-To: <20071004172220.aaa95892.seth@4thtemple.com> References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071004153614.cddf746f.seth@4thtemple.com> <20071004172220.aaa95892.seth@4thtemple.com> Message-ID: <20071005190747.45b60b6f.seth@4thtemple.com> hrm...took a day and a half to fix but my box it back up but gentoo still rocks my jewfro. anyway.. I can't seem to replicate the problem you're describing, it seems to work fine. you can check here .. http://www.4thtemple.com/ramf/testamf.swf and http://www.4thtemple.com:8740/tester/testamf .. maybe i misunderstood the bug? On Thu, 4 Oct 2007 17:22:20 -0400 seth wrote: > ahh ok..hopefully i can get cracking on it late night.. my gentoo dev box is being difficult due to library linking errors during update......... > > On Thu, 4 Oct 2007 12:58:46 -0700 > "aaron smith" wrote: > > > So first make a simple rails app. > > > > Then test out the HTML version, > > Then make a rubyamf request to it. > > then check the HTML version again. > > > > Do this all while running in production, and without restarting rails. > > > > Chances are the HTML version will be broken after the rubyamf reqeust. > > > > -Aaron > > > > On 10/4/07, seth wrote: > > > > > > can you give me some example of how to replicate this problem? > > > > > > On Mon, 1 Oct 2007 12:57:40 -0700 > > > RubyAMF wrote: > > > > > > > -production mode unsafe? There are still some situations where rubyamf > > > > requests are causing production mode problems. The exact problem lies in > > > the > > > > util/action_controller.rb. the one conditional (if options.nil?) > > > render_file > > > > etc. > > > > > > -- > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > -- > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -- From seth at 4thtemple.com Sat Oct 6 20:51:27 2007 From: seth at 4thtemple.com (seth) Date: Sat, 6 Oct 2007 20:51:27 -0400 Subject: [RubyAMF] moving along the todo list... In-Reply-To: <20071005190747.45b60b6f.seth@4thtemple.com> References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071004153614.cddf746f.seth@4thtemple.com> <20071004172220.aaa95892.seth@4thtemple.com> <20071005190747.45b60b6f.seth@4thtemple.com> Message-ID: <20071006205127.7b7e674b.seth@4thtemple.com> found a problem with production mode. When calling a remoteObject with setCredentials it triggers this set of errors: undefined method `unpack' for nil:NilClass /var/www/localhost/ramf/vendor/plugins/rubyamf/rubyamf_core/io/read_write.rb:56:in `read_word8' /var/www/localhost/ramf/vendor/plugins/rubyamf/rubyamf_core/io/amf_deserializer.rb:228:in `read_amf3_integer' .... This is probably in reference to what was said regarding 'util/action_controller.rb. the one conditional (if options.nil?)' looking into it. > hrm...took a day and a half to fix but my box it back up but gentoo still rocks my jewfro. > anyway.. I can't seem to replicate the problem you're describing, it seems to work fine. you can check here .. > http://www.4thtemple.com/ramf/testamf.swf and http://www.4thtemple.com:8740/tester/testamf .. maybe i misunderstood the bug? > > On Thu, 4 Oct 2007 17:22:20 -0400 > seth wrote: > > > ahh ok..hopefully i can get cracking on it late night.. my gentoo dev box is being difficult due to library linking errors during update......... > > > > On Thu, 4 Oct 2007 12:58:46 -0700 > > "aaron smith" wrote: > > > > > So first make a simple rails app. > > > > > > Then test out the HTML version, > > > Then make a rubyamf request to it. > > > then check the HTML version again. > > > > > > Do this all while running in production, and without restarting rails. > > > > > > Chances are the HTML version will be broken after the rubyamf reqeust. > > > > > > -Aaron > > > > > > On 10/4/07, seth wrote: > > > > > > > > can you give me some example of how to replicate this problem? > > > > > > > > On Mon, 1 Oct 2007 12:57:40 -0700 > > > > RubyAMF wrote: > > > > > > > > > -production mode unsafe? There are still some situations where rubyamf > > > > > requests are causing production mode problems. The exact problem lies in > > > > the > > > > > util/action_controller.rb. the one conditional (if options.nil?) > > > > render_file > > > > > etc. > > > > > > > > -- > > > > > > > > _______________________________________________ > > > > Rubyamf-discussion mailing list > > > > Rubyamf-discussion at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > > -- > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > -- > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -- From seth at 4thtemple.com Sat Oct 6 22:36:52 2007 From: seth at 4thtemple.com (seth) Date: Sat, 6 Oct 2007 22:36:52 -0400 Subject: [RubyAMF] moving along the todo list... In-Reply-To: <20071006205127.7b7e674b.seth@4thtemple.com> References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071004153614.cddf746f.seth@4thtemple.com> <20071004172220.aaa95892.seth@4thtemple.com> <20071005190747.45b60b6f.seth@4thtemple.com> <20071006205127.7b7e674b.seth@4thtemple.com> Message-ID: <20071006223652.17072e4c.seth@4thtemple.com> ok, problem fixed, apparently rescue errors are different between different modes. This had nothing to do with action_controller.rb. Patch(es) can be found at www.4thtemple.com/rubyamf corresponding to /rubyamf_core On Sat, 6 Oct 2007 20:51:27 -0400 seth wrote: > found a problem with production mode. When calling a remoteObject with setCredentials it triggers this set of errors: > > undefined method `unpack' for nil:NilClass > /var/www/localhost/ramf/vendor/plugins/rubyamf/rubyamf_core/io/read_write.rb:56:in `read_word8' > /var/www/localhost/ramf/vendor/plugins/rubyamf/rubyamf_core/io/amf_deserializer.rb:228:in `read_amf3_integer' > .... > > This is probably in reference to what was said regarding 'util/action_controller.rb. the one conditional (if options.nil?)' > > looking into it. > > > > hrm...took a day and a half to fix but my box it back up but gentoo still rocks my jewfro. > > anyway.. I can't seem to replicate the problem you're describing, it seems to work fine. you can check here .. > > http://www.4thtemple.com/ramf/testamf.swf and http://www.4thtemple.com:8740/tester/testamf .. maybe i misunderstood the bug? > > > > On Thu, 4 Oct 2007 17:22:20 -0400 > > seth wrote: > > > > > ahh ok..hopefully i can get cracking on it late night.. my gentoo dev box is being difficult due to library linking errors during update......... > > > > > > On Thu, 4 Oct 2007 12:58:46 -0700 > > > "aaron smith" wrote: > > > > > > > So first make a simple rails app. > > > > > > > > Then test out the HTML version, > > > > Then make a rubyamf request to it. > > > > then check the HTML version again. > > > > > > > > Do this all while running in production, and without restarting rails. > > > > > > > > Chances are the HTML version will be broken after the rubyamf reqeust. > > > > > > > > -Aaron > > > > > > > > On 10/4/07, seth wrote: > > > > > > > > > > can you give me some example of how to replicate this problem? > > > > > > > > > > On Mon, 1 Oct 2007 12:57:40 -0700 > > > > > RubyAMF wrote: > > > > > > > > > > > -production mode unsafe? There are still some situations where rubyamf > > > > > > requests are causing production mode problems. The exact problem lies in > > > > > the > > > > > > util/action_controller.rb. the one conditional (if options.nil?) > > > > > render_file > > > > > > etc. > > > > > > > > > > -- > > > > > > > > > > _______________________________________________ > > > > > Rubyamf-discussion mailing list > > > > > Rubyamf-discussion at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > > > > > > > -- > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > -- > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > -- > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -- From beingthexemplary at gmail.com Sun Oct 7 00:53:29 2007 From: beingthexemplary at gmail.com (aaron smith) Date: Sat, 6 Oct 2007 21:53:29 -0700 Subject: [RubyAMF] moving along the todo list... In-Reply-To: <20071006223652.17072e4c.seth@4thtemple.com> References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071004153614.cddf746f.seth@4thtemple.com> <20071004172220.aaa95892.seth@4thtemple.com> <20071005190747.45b60b6f.seth@4thtemple.com> <20071006205127.7b7e674b.seth@4thtemple.com> <20071006223652.17072e4c.seth@4thtemple.com> Message-ID: Hey Man, I really appreciate the time you're taking to work on RubyAMF. Lot's of people saying they want to help, but usually nothing happens.. I'd like to get you on the commit list and an admin on the rubyforge project. I can get you into the blog too - to start blogging. What do you think? If you're in let me know, I'll set everything up to get you committing, then just run with your stuff. What kinds of tests are you running to ensure your changes don't break anything else? Thanks -Aaron On 10/6/07, seth wrote: > > ok, problem fixed, apparently rescue errors are different between > different modes. This had nothing to do with > action_controller.rb. Patch(es) can be found at www.4thtemple.com/rubyamfcorresponding to > /rubyamf_core > > > On Sat, 6 Oct 2007 20:51:27 -0400 > seth wrote: > > > found a problem with production mode. When calling a remoteObject with > setCredentials it triggers this set of errors: > > > > undefined method `unpack' for nil:NilClass > > > /var/www/localhost/ramf/vendor/plugins/rubyamf/rubyamf_core/io/read_write.rb:56:in > `read_word8' > > > /var/www/localhost/ramf/vendor/plugins/rubyamf/rubyamf_core/io/amf_deserializer.rb:228:in > `read_amf3_integer' > > .... > > > > This is probably in reference to what was said regarding > 'util/action_controller.rb. the one conditional (if options.nil?)' > > > > looking into it. > > > > > > > hrm...took a day and a half to fix but my box it back up but gentoo > still rocks my jewfro. > > > anyway.. I can't seem to replicate the problem you're describing, it > seems to work fine. you can check here .. > > > http://www.4thtemple.com/ramf/testamf.swf and > http://www.4thtemple.com:8740/tester/testamf .. maybe i misunderstood the > bug? > > > > > > On Thu, 4 Oct 2007 17:22:20 -0400 > > > seth wrote: > > > > > > > ahh ok..hopefully i can get cracking on it late night.. my gentoo > dev box is being difficult due to library linking errors during > update......... > > > > > > > > On Thu, 4 Oct 2007 12:58:46 -0700 > > > > "aaron smith" wrote: > > > > > > > > > So first make a simple rails app. > > > > > > > > > > Then test out the HTML version, > > > > > Then make a rubyamf request to it. > > > > > then check the HTML version again. > > > > > > > > > > Do this all while running in production, and without restarting > rails. > > > > > > > > > > Chances are the HTML version will be broken after the rubyamf > reqeust. > > > > > > > > > > -Aaron > > > > > > > > > > On 10/4/07, seth wrote: > > > > > > > > > > > > can you give me some example of how to replicate this problem? > > > > > > > > > > > > On Mon, 1 Oct 2007 12:57:40 -0700 > > > > > > RubyAMF wrote: > > > > > > > > > > > > > -production mode unsafe? There are still some situations where > rubyamf > > > > > > > requests are causing production mode problems. The exact > problem lies in > > > > > > the > > > > > > > util/action_controller.rb. the one conditional (if options.nil > ?) > > > > > > render_file > > > > > > > etc. > > > > > > > > > > > > -- > > > > > > > > > > > > _______________________________________________ > > > > > > Rubyamf-discussion mailing list > > > > > > Rubyamf-discussion at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > _______________________________________________ > > > > Rubyamf-discussion mailing list > > > > Rubyamf-discussion at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > -- > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > -- > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > -- > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071006/0e7cde7c/attachment.html From seth at 4thtemple.com Sun Oct 7 02:06:04 2007 From: seth at 4thtemple.com (seth) Date: Sun, 7 Oct 2007 02:06:04 -0400 Subject: [RubyAMF] moving along the todo list... In-Reply-To: References: <20071001153907.ce6eaeb0.seth@4thtemple.com> <20071004153614.cddf746f.seth@4thtemple.com> <20071004172220.aaa95892.seth@4thtemple.com> <20071005190747.45b60b6f.seth@4thtemple.com> <20071006205127.7b7e674b.seth@4thtemple.com> <20071006223652.17072e4c.seth@4thtemple.com> Message-ID: <20071007020604.ed67a0fa.seth@4thtemple.com> yeah, im pretty careful in changes that i make. obviosly i'm not neerly as fluent in this application as you are, it's an extremely intricate piece of work, so im not really sure how everything interacts.. except for what the debugger breaks on.. but basically i just check like amf string returns and models for now.... im sure i need to have a better testing setup.. gotta research that more.. yeah dude, the challenge is fun and the blog sounds really neat... On Sat, 6 Oct 2007 21:53:29 -0700 "aaron smith" wrote: > Hey Man, I really appreciate the time you're taking to work on RubyAMF. > Lot's of people saying they want to help, but usually nothing happens.. I'd > like to get you on the commit list and an admin on the rubyforge project. I > can get you into the blog too - to start blogging. What do you think? If > you're in let me know, I'll set everything up to get you committing, then > just run with your stuff. What kinds of tests are you running to ensure your > changes don't break anything else? > > Thanks > -Aaron > > > > On 10/6/07, seth wrote: > > > > ok, problem fixed, apparently rescue errors are different between > > different modes. This had nothing to do with > > action_controller.rb. Patch(es) can be found at www.4thtemple.com/rubyamfcorresponding to > > /rubyamf_core > > > > > > On Sat, 6 Oct 2007 20:51:27 -0400 > > seth wrote: > > > > > found a problem with production mode. When calling a remoteObject with > > setCredentials it triggers this set of errors: > > > > > > undefined method `unpack' for nil:NilClass > > > > > /var/www/localhost/ramf/vendor/plugins/rubyamf/rubyamf_core/io/read_write.rb:56:in > > `read_word8' > > > > > /var/www/localhost/ramf/vendor/plugins/rubyamf/rubyamf_core/io/amf_deserializer.rb:228:in > > `read_amf3_integer' > > > .... > > > > > > This is probably in reference to what was said regarding > > 'util/action_controller.rb. the one conditional (if options.nil?)' > > > > > > looking into it. > > > > > > > > > > hrm...took a day and a half to fix but my box it back up but gentoo > > still rocks my jewfro. > > > > anyway.. I can't seem to replicate the problem you're describing, it > > seems to work fine. you can check here .. > > > > http://www.4thtemple.com/ramf/testamf.swf and > > http://www.4thtemple.com:8740/tester/testamf .. maybe i misunderstood the > > bug? > > > > > > > > On Thu, 4 Oct 2007 17:22:20 -0400 > > > > seth wrote: > > > > > > > > > ahh ok..hopefully i can get cracking on it late night.. my gentoo > > dev box is being difficult due to library linking errors during > > update......... > > > > > > > > > > On Thu, 4 Oct 2007 12:58:46 -0700 > > > > > "aaron smith" wrote: > > > > > > > > > > > So first make a simple rails app. > > > > > > > > > > > > Then test out the HTML version, > > > > > > Then make a rubyamf request to it. > > > > > > then check the HTML version again. > > > > > > > > > > > > Do this all while running in production, and without restarting > > rails. > > > > > > > > > > > > Chances are the HTML version will be broken after the rubyamf > > reqeust. > > > > > > > > > > > > -Aaron > > > > > > > > > > > > On 10/4/07, seth wrote: > > > > > > > > > > > > > > can you give me some example of how to replicate this problem? > > > > > > > > > > > > > > On Mon, 1 Oct 2007 12:57:40 -0700 > > > > > > > RubyAMF wrote: > > > > > > > > > > > > > > > -production mode unsafe? There are still some situations where > > rubyamf > > > > > > > > requests are causing production mode problems. The exact > > problem lies in > > > > > > > the > > > > > > > > util/action_controller.rb. the one conditional (if options.nil > > ?) > > > > > > > render_file > > > > > > > > etc. > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Rubyamf-discussion mailing list > > > > > > > Rubyamf-discussion at rubyforge.org > > > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > _______________________________________________ > > > > > Rubyamf-discussion mailing list > > > > > Rubyamf-discussion at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > -- > > > > > > > > _______________________________________________ > > > > Rubyamf-discussion mailing list > > > > Rubyamf-discussion at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > -- > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > -- > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > -- From brudert at gmail.com Mon Oct 8 23:32:21 2007 From: brudert at gmail.com (Bryan Carlson) Date: Mon, 8 Oct 2007 20:32:21 -0700 Subject: [RubyAMF] HTTPService with format.amf Message-ID: <578afe190710082032t729044edh5ff121b3d43bc674@mail.gmail.com> Hello, I have a simple POC application set up that uses a Flex front end to process a RESTful Rails backend by sending XML back and forth. Since XML is large and ugly I am trying to use RubyAMF instead. However, I cannot get it working. What I did was install RubyAMF to my rails project dir by using the rails installer. I then added the following code to my respond_to blocks format.amf {render :amf => Trail.find(:all, :include => :trail_points)} When I test in my browser (url/page.amf) I get an AMF file but it's just the rhtml file wrapped as AMF. So changing my HTTPService url's in Flex from .xml to .amf will not work. Does this mean that I need to go about it an entirely different way? Thank you so much. I'm very excited about RubyAMF and hope to get this working. -bryan From aaron at rubyamf.org Tue Oct 9 00:29:37 2007 From: aaron at rubyamf.org (Aaron Smith) Date: Mon, 8 Oct 2007 21:29:37 -0700 Subject: [RubyAMF] HTTPService with format.amf In-Reply-To: <578afe190710082032t729044edh5ff121b3d43bc674@mail.gmail.com> References: <578afe190710082032t729044edh5ff121b3d43bc674@mail.gmail.com> Message-ID: You actually need to use RemoteObject. Technically HTTPService doesn't accept AMF as a response type. Also looking at the page, like (/myaction.amf) won't correctly render anything, as AMF is a binary format. so check out remote object, if you do a little googling you'll find an example of how to use it, then just apply that to RubyAMF. you can check out this post: http://www.sephiroth.it/tutorials/flashPHP/flex_remoteobject/index.php This example is amfphp, but the same flex concepts can be applied to rails.. you'll just have to change out the gateway location and which controller you're calling. -Aaron On 10/8/07, Bryan Carlson wrote: > > Hello, > > I have a simple POC application set up that uses a Flex front end to > process a RESTful Rails backend by sending XML back and forth. Since > XML is large and ugly I am trying to use RubyAMF instead. However, I > cannot get it working. > > What I did was install RubyAMF to my rails project dir by using the > rails installer. I then added the following code to my respond_to > blocks > > format.amf {render :amf => Trail.find(:all, :include => :trail_points)} > > When I test in my browser (url/page.amf) I get an AMF file but it's > just the rhtml file wrapped as AMF. > > So changing my HTTPService url's in Flex from .xml to .amf will not > work. Does this mean that I need to go about it an entirely different > way? > > Thank you so much. I'm very excited about RubyAMF and hope to get this > working. > > -bryan > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071008/4ba59566/attachment.html From brudert at gmail.com Tue Oct 9 17:41:57 2007 From: brudert at gmail.com (Bryan Carlson) Date: Tue, 9 Oct 2007 14:41:57 -0700 Subject: [RubyAMF] RequestStore.reload_services Message-ID: <578afe190710091441g588e8879of806105bdc458e1a@mail.gmail.com> Howdy, I found that I needed to restart the server each time I made a change to my projects controller. To fix this I just set RequestStore.reload_services in the rubyamf controller to 'true'. Am I breaking anything by doing this? I assume it is set to false for performance reasons so I need to just make sure to change it back to false before the project goes live. Thanks -bryan From aaron at rubyamf.org Tue Oct 9 18:59:04 2007 From: aaron at rubyamf.org (Aaron Smith) Date: Tue, 9 Oct 2007 15:59:04 -0700 Subject: [RubyAMF] RequestStore.reload_services In-Reply-To: <578afe190710091441g588e8879of806105bdc458e1a@mail.gmail.com> References: <578afe190710091441g588e8879of806105bdc458e1a@mail.gmail.com> Message-ID: You'll need to change the controller/rubyamf_controller.rb file. there is a line in there with "RequestStore.reload_services = false". Change that to true On 10/9/07, Bryan Carlson wrote: > > Howdy, > > I found that I needed to restart the server each time I made a change > to my projects controller. To fix this I just set > RequestStore.reload_services in the rubyamf controller to 'true'. > > Am I breaking anything by doing this? I assume it is set to false for > performance reasons so I need to just make sure to change it back to > false before the project goes live. > > Thanks > -bryan > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071009/24257f5e/attachment.html From aaron at rubyamf.org Tue Oct 9 22:21:11 2007 From: aaron at rubyamf.org (Aaron Smith) Date: Tue, 9 Oct 2007 19:21:11 -0700 Subject: [RubyAMF] testing. sorry. Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071009/2196720a/attachment.html From brudert at gmail.com Wed Oct 10 03:05:13 2007 From: brudert at gmail.com (Bryan Carlson) Date: Wed, 10 Oct 2007 00:05:13 -0700 Subject: [RubyAMF] Tutorial: Setting up RubyAMF with RESTful Rails Message-ID: <578afe190710100005q733325f6t4c016db4c5cb6c30@mail.gmail.com> Since I admire Aaron's, and now, Tony's and Seth's dedication to the RubyAMF project I figured I'd try to help out a bit while they slave away on 1.3.4. I wrote up a pretty exhaustive tutorial that explains how to set up a rails project, a flex project, and then tie them together using our much loved RAMFR. Please feel free to comment, suggest changes, or point out anything stupid that I may have written. Enjoy! http://natureandtech.blogspot.com/2007/10/beginners-tutorial-to-rubyamf-with.html -bryan From mllobrera at domanistudios.com Wed Oct 10 17:36:33 2007 From: mllobrera at domanistudios.com (Mark Llobrera) Date: Wed, 10 Oct 2007 17:36:33 -0400 Subject: [RubyAMF] user authentication with restful_authentication Message-ID: Hi all- I'm implementing a project that requires user authentication and trying to figure out how the RubyAMF authentication hooks work. I've watched the screencast at http://blog.rubyamf.org/screencasts/ standalone_flash_authentication.mov which shows a very basic example, but does anyone have any insight into how to integrate the rubyamf authentication system with something like the restful_authentication plugin? Do I still define an _authenticate method, except that within that method I call the User.authenticate() method of the restful_authentication plugin? Something like: def _authenticate(user, pass) if !user.nil? && !pass.nil? then @auth = User.authenticate(user, pass) end end Thanks in advance. -Mark From beingthexemplary at gmail.com Wed Oct 10 19:15:09 2007 From: beingthexemplary at gmail.com (aaron smith) Date: Wed, 10 Oct 2007 16:15:09 -0700 Subject: [RubyAMF] user authentication with restful_authentication In-Reply-To: References: Message-ID: With rails the flow is a little different. You should define a before_filter, and in that before filter, call User.authenticat. etc.. You have access to credentials from the method "amf_crendentials". Note that this will be changed to just "credentials" in 1.3.4, as we've got setRemoteCredentials working.. heres a quick example: class MyController < ApplicationController before_filter :authenticate def authticate creds = amf_credentials user = creds[:username] pass = creds[:password] @auth = User.authenticate(user,pass) #... end end The current rubyamf release only support using setCredentials from a NetConnection object. If you're using remoteObject.setCredentials or remoteObject.setRemoteCredentials nothing will come through in the amf_credentials hash. Hope that helps. Aaron On 10/10/07, Mark Llobrera wrote: > > Hi all- > > I'm implementing a project that requires user authentication and > trying to figure out how the RubyAMF authentication hooks work. I've > watched the screencast at http://blog.rubyamf.org/screencasts/ > standalone_flash_authentication.mov which shows a very basic example, > but does anyone have any insight into how to integrate the rubyamf > authentication system with something like the restful_authentication > plugin? Do I still define an _authenticate method, except that within > that method I call the User.authenticate() method of the > restful_authentication plugin? > > Something like: > > def _authenticate(user, pass) > if !user.nil? && !pass.nil? then @auth = User.authenticate(user, > pass) end > end > > Thanks in advance. > > -Mark > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071010/3e6633d0/attachment.html From drichards at showcase60.com Wed Oct 10 19:21:26 2007 From: drichards at showcase60.com (David Richards) Date: Wed, 10 Oct 2007 17:21:26 -0600 Subject: [RubyAMF] user authentication with restful_authentication In-Reply-To: References: Message-ID: <43428FFF-071D-4839-B62C-3E72D261CDFA@showcase60.com> So, this is new to me, and I was actually just working on something in a little more plain-vanilla approach. I was just going to send back the current_user if the authentication worked. What are the benefits of using the amf_credentials instead? Thanks, David On Oct 10, 2007, at 5:15 PM, aaron smith wrote: > With rails the flow is a little different. > > You should define a before_filter, and in that before filter, call > User.authenticat. etc.. > > You have access to credentials from the method "amf_crendentials". > Note that this will be changed to just "credentials" in 1.3.4, as > we've got setRemoteCredentials working.. > > heres a quick example: > > class MyController < ApplicationController > before_filter :authenticate > def authticate > creds = amf_credentials > user = creds[:username] > pass = creds[:password] > @auth = User.authenticate(user,pass) > #... > end > end > > The current rubyamf release only support using setCredentials from > a NetConnection object. > > If you're using remoteObject.setCredentials or > remoteObject.setRemoteCredentials nothing will come through in the > amf_credentials hash. > > Hope that helps. > > Aaron > > On 10/10/07, Mark Llobrera wrote: > Hi all- > > I'm implementing a project that requires user authentication and > trying to figure out how the RubyAMF authentication hooks work. I've > watched the screencast at http://blog.rubyamf.org/screencasts/ > standalone_flash_authentication.mov which shows a very basic example, > but does anyone have any insight into how to integrate the rubyamf > authentication system with something like the restful_authentication > plugin? Do I still define an _authenticate method, except that within > that method I call the User.authenticate() method of the > restful_authentication plugin? > > Something like: > > def _authenticate(user, pass) > if !user.nil? && !pass.nil? then @auth = User.authenticate > (user, > pass) end > end > > Thanks in advance. > > -Mark > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071010/fa850c1d/attachment-0001.html From beingthexemplary at gmail.com Wed Oct 10 19:49:31 2007 From: beingthexemplary at gmail.com (aaron smith) Date: Wed, 10 Oct 2007 16:49:31 -0700 Subject: [RubyAMF] user authentication with restful_authentication In-Reply-To: <43428FFF-071D-4839-B62C-3E72D261CDFA@showcase60.com> References: <43428FFF-071D-4839-B62C-3E72D261CDFA@showcase60.com> Message-ID: Yeah, most that are using rails for a backend use sessions for authentication. But traditionally with Flash Remoting you want to use credentials. When you use credentials, every remoting request sends over a user/pass Credentials header. Before the target remoting method is called, the system must first authenticate against that user / pass. So this is very secure as there is no way to call a method before authenticating. Most that use rails want to use sessions to authenticate. If the way you're doing it works, then proceed with that. I think with Rails the workflow seems to be better with sessions because you build it in to the app, and it works for all clients trying to access your system including the flash player. However I want to point out that sessions represent "state in a stateless http protocol." Meaning that sessions are really for storing data over 2 page requests in the browser. But if you're using Flex, you have state representation with the flash player, because the page never changes. So I guess what I'm trying to say is that with Rails, it's ok to use sessions, but not as secure. If you do remoting with any other package, state needs to be represented on the client, and authentication is done with setCredentials or setRemoteCredentials. -Aaron On 10/10/07, David Richards wrote: > > So, this is new to me, and I was actually just working on something in a > little more plain-vanilla approach. I was just going to send back the > current_user if the authentication worked. What are the benefits of using > the amf_credentials instead? > Thanks, > > David > > > On Oct 10, 2007, at 5:15 PM, aaron smith wrote: > > With rails the flow is a little different. > > You should define a before_filter, and in that before filter, call > User.authenticat. etc.. > > You have access to credentials from the method "amf_crendentials". Note > that this will be changed to just "credentials" in 1.3.4, as we've got > setRemoteCredentials working.. > > heres a quick example: > > class MyController < ApplicationController > before_filter :authenticate > def authticate > creds = amf_credentials > user = creds[:username] > pass = creds[:password] > @auth = User.authenticate(user,pass) > #... > end > end > > The current rubyamf release only support using setCredentials from a > NetConnection object. > > If you're using remoteObject.setCredentials or > remoteObject.setRemoteCredentials nothing will come through in the > amf_credentials hash. > > Hope that helps. > > Aaron > > On 10/10/07, Mark Llobrera wrote: > > > > Hi all- > > > > I'm implementing a project that requires user authentication and > > trying to figure out how the RubyAMF authentication hooks work. I've > > watched the screencast at http://blog.rubyamf.org/screencasts/ > > standalone_flash_authentication.mov which shows a very basic example, > > but does anyone have any insight into how to integrate the rubyamf > > authentication system with something like the restful_authentication > > plugin? Do I still define an _authenticate method, except that within > > that method I call the User.authenticate() method of the > > restful_authentication plugin? > > > > Something like: > > > > def _authenticate(user, pass) > > if !user.nil? && !pass.nil? then @auth = User.authenticate(user, > > pass) end > > end > > > > Thanks in advance. > > > > -Mark > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071010/66a3b06f/attachment.html From aaron at rubyamf.org Tue Oct 16 03:59:11 2007 From: aaron at rubyamf.org (Aaron Smith) Date: Tue, 16 Oct 2007 00:59:11 -0700 Subject: [RubyAMF] RubyAMF 1.3.4 Preview Message-ID: Hey All, RubyAMF 1.3.4 preview is in Edge. Note that I've updated Edge to be in /trunk/rubyamf. This is for rails installers so that it automatically puts it in vendor/plugins/rubyamf Here's the new installer: ruby script/plugin install http://rubyamf.googlecode.com/svn/trunk/rubyamf --Thanks for any support! Here's what's in the CHANGELOG: #Updated gateway page ( http://localhost:3000/rubyamf/gateway) #Fixed nested routes issues #Killed RubyAMF Lite. The last version of RubyAMF Lite can be found in svn at /branches/rubyamflite_9**. Sorry folks :(. #Single mysql records are ALWAYS returned as an object, not wrapped in an array anymore. #Single active records are ALWAYS returned as an object. No use for as_single! anymore. Note there is a deprecation warning if you use it. #Fixed small bug with incoming VO names. IE this wouldn't work: ValueObjects.register({:incoming=>'vo.SectionVO ',:map_to=>'Section',:outgoing=>'vo.SectionVO'}). Note that the package always gets truncated in situation like this. So this would be in the params hash as params[:sectionvo]. Unless you define a custom parameter mapping. #Added case translations for value objects. You can translate incoming lowerCamelCase to snake_case, and outgoing snake_case to lowerCamelCase. See configuration for value objects. ( ValueObjects.translate_case) #Added setRemoteCredentials support. #Added "credentials" method to ActionController::Base. Anytime you set credentials with "setRemoteCredentials" or "setCredentials" in Flex, this method will return a hash with {username:'username',password:'mypassword'}. #Fixed issue with returned value objects that had :belongs_to association, it now correctly returns an object, not wrapped in any array anymore. #All association types work, belongs_to, has_many, through, has_and_belongs_to_many. Note that you need to use eager loading (:include) for any associate model data you want returned to Flex. #Changed read_write so it doesn't crash in production when setCredentials is set. When in production mode the exception message was different in different modes. #fixed debug player issues. It correlates to the rails modes. An error that was happening while reading integers was raising errors, but the message was different per mode, so a regex I was using to sniff it was not catching it in production mode. #added magic_field ignorance. Incoming VO's magic field members are ignored. Currently magic fields are "created_at","created_on","updated_at","updated_on" #Rails no longer complains about missing views for RubyAMF requests. #Added ParamMapping for mapping incoming remoting parameters into rails' params hash. Note that there is still default parameter mapping logic in place. That is run first, then any mappings you define will be set. #Re-wrote active record adapter. Everything is done with the usual recursion, but also with reflections during the recursion process. Allows a 1:1 VO to AR / AR to VO. #Squeezed every possible millisecond out of the active record adapter. It's slightly faster, were talking 10's - 100's of milleseconds. The speed increase varies depending on the complexity of your result. #Fixed a couple problems with custom class mappings that weren't active records. #Added ValueObjects.vo_path to vo_config. See the documentation in that config file about what it is. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071016/8a4d7cb8/attachment.html From seth at 4thtemple.com Tue Oct 16 09:22:43 2007 From: seth at 4thtemple.com (seth) Date: Tue, 16 Oct 2007 09:22:43 -0400 Subject: [RubyAMF] RubyAMF 1.3.4 Preview In-Reply-To: References: Message-ID: <20071016092243.3a3bb6a4.seth@4thtemple.com> As Scotty Nguyen would say... "Yeah Baby!" On Tue, 16 Oct 2007 00:59:11 -0700 "Aaron Smith" wrote: > Hey All, > > RubyAMF 1.3.4 preview is in Edge. > > Note that I've updated Edge to be in /trunk/rubyamf. This is for rails > installers so that it automatically puts it in vendor/plugins/rubyamf > > Here's the new installer: > ruby script/plugin install http://rubyamf.googlecode.com/svn/trunk/rubyamf > > > --Thanks for any support! > > > Here's what's in the CHANGELOG: > > #Updated gateway page ( http://localhost:3000/rubyamf/gateway) > > #Fixed nested routes issues > > #Killed RubyAMF Lite. The last version of RubyAMF Lite can be found in svn > at /branches/rubyamflite_9**. Sorry folks :(. > > #Single mysql records are ALWAYS returned as an object, not wrapped in an > array anymore. > > #Single active records are ALWAYS returned as an object. No use for > as_single! anymore. Note there is a deprecation warning if you use it. > > #Fixed small bug with incoming VO names. IE this wouldn't work: > ValueObjects.register({:incoming=>'vo.SectionVO > ',:map_to=>'Section',:outgoing=>'vo.SectionVO'}). Note that the package > always gets truncated in situation like this. So this would be in the params > hash as params[:sectionvo]. Unless you define a custom parameter mapping. > > #Added case translations for value objects. You can translate incoming > lowerCamelCase to snake_case, and outgoing snake_case to lowerCamelCase. See > configuration for value objects. ( ValueObjects.translate_case) > > #Added setRemoteCredentials support. > > #Added "credentials" method to ActionController::Base. Anytime you set > credentials with "setRemoteCredentials" or "setCredentials" in Flex, this > method will return a hash with {username:'username',password:'mypassword'}. > > #Fixed issue with returned value objects that had :belongs_to association, > it now correctly returns an object, not wrapped in any array anymore. > > #All association types work, belongs_to, has_many, through, > has_and_belongs_to_many. Note that you need to use eager loading (:include) > for any associate model data you want returned to Flex. > > #Changed read_write so it doesn't crash in production when setCredentials is > set. When in production mode the exception message was different in > different modes. > > #fixed debug player issues. It correlates to the rails modes. An error that > was happening while reading integers was raising errors, but the message was > different per mode, so a regex I was using to sniff it was not catching it > in production mode. > > #added magic_field ignorance. Incoming VO's magic field members are ignored. > Currently magic fields are > "created_at","created_on","updated_at","updated_on" > > #Rails no longer complains about missing views for RubyAMF requests. > > #Added ParamMapping for mapping incoming remoting parameters into rails' > params hash. Note that there is still default parameter mapping logic in > place. That is run first, then any mappings you define will be set. > > #Re-wrote active record adapter. Everything is done with the usual > recursion, but also with reflections during the recursion process. Allows a > 1:1 VO to AR / AR to VO. > > #Squeezed every possible millisecond out of the active record adapter. It's > slightly faster, were talking 10's - 100's of milleseconds. The speed > increase varies depending on the complexity of your result. > > #Fixed a couple problems with custom class mappings that weren't active > records. > > #Added ValueObjects.vo_path to vo_config. See the documentation in that > config file about what it is. > From beingthexemplary at gmail.com Tue Oct 16 12:27:56 2007 From: beingthexemplary at gmail.com (aaron smith) Date: Tue, 16 Oct 2007 09:27:56 -0700 Subject: [RubyAMF] RubyAMF 1.3.4 Preview In-Reply-To: <20071016092243.3a3bb6a4.seth@4thtemple.com> References: <20071016092243.3a3bb6a4.seth@4thtemple.com> Message-ID: or austin powers. On 10/16/07, seth wrote: > > As Scotty Nguyen would say... "Yeah Baby!" > > On Tue, 16 Oct 2007 00:59:11 -0700 > "Aaron Smith" wrote: > > > Hey All, > > > > RubyAMF 1.3.4 preview is in Edge. > > > > Note that I've updated Edge to be in /trunk/rubyamf. This is for rails > > installers so that it automatically puts it in vendor/plugins/rubyamf > > > > Here's the new installer: > > ruby script/plugin install > http://rubyamf.googlecode.com/svn/trunk/rubyamf > > > > > > --Thanks for any support! > > > > > > Here's what's in the CHANGELOG: > > > > #Updated gateway page ( http://localhost:3000/rubyamf/gateway) > > > > #Fixed nested routes issues > > > > #Killed RubyAMF Lite. The last version of RubyAMF Lite can be found in > svn > > at /branches/rubyamflite_9**. Sorry folks :(. > > > > #Single mysql records are ALWAYS returned as an object, not wrapped in > an > > array anymore. > > > > #Single active records are ALWAYS returned as an object. No use for > > as_single! anymore. Note there is a deprecation warning if you use it. > > > > #Fixed small bug with incoming VO names. IE this wouldn't work: > > ValueObjects.register({:incoming=>'vo.SectionVO > > ',:map_to=>'Section',:outgoing=>'vo.SectionVO'}). Note that the package > > always gets truncated in situation like this. So this would be in the > params > > hash as params[:sectionvo]. Unless you define a custom parameter > mapping. > > > > #Added case translations for value objects. You can translate incoming > > lowerCamelCase to snake_case, and outgoing snake_case to lowerCamelCase. > See > > configuration for value objects. ( ValueObjects.translate_case) > > > > #Added setRemoteCredentials support. > > > > #Added "credentials" method to ActionController::Base. Anytime you set > > credentials with "setRemoteCredentials" or "setCredentials" in Flex, > this > > method will return a hash with > {username:'username',password:'mypassword'}. > > > > #Fixed issue with returned value objects that had :belongs_to > association, > > it now correctly returns an object, not wrapped in any array anymore. > > > > #All association types work, belongs_to, has_many, through, > > has_and_belongs_to_many. Note that you need to use eager loading > (:include) > > for any associate model data you want returned to Flex. > > > > #Changed read_write so it doesn't crash in production when > setCredentials is > > set. When in production mode the exception message was different in > > different modes. > > > > #fixed debug player issues. It correlates to the rails modes. An error > that > > was happening while reading integers was raising errors, but the message > was > > different per mode, so a regex I was using to sniff it was not catching > it > > in production mode. > > > > #added magic_field ignorance. Incoming VO's magic field members are > ignored. > > Currently magic fields are > > "created_at","created_on","updated_at","updated_on" > > > > #Rails no longer complains about missing views for RubyAMF requests. > > > > #Added ParamMapping for mapping incoming remoting parameters into rails' > > params hash. Note that there is still default parameter mapping logic in > > place. That is run first, then any mappings you define will be set. > > > > #Re-wrote active record adapter. Everything is done with the usual > > recursion, but also with reflections during the recursion process. > Allows a > > 1:1 VO to AR / AR to VO. > > > > #Squeezed every possible millisecond out of the active record adapter. > It's > > slightly faster, were talking 10's - 100's of milleseconds. The speed > > increase varies depending on the complexity of your result. > > > > #Fixed a couple problems with custom class mappings that weren't active > > records. > > > > #Added ValueObjects.vo_path to vo_config. See the documentation in that > > config file about what it is. > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071016/76e8dedf/attachment-0001.html From grimm at grimmwerks.com Tue Oct 16 12:29:06 2007 From: grimm at grimmwerks.com (grimmwerks) Date: Tue, 16 Oct 2007 12:29:06 -0400 Subject: [RubyAMF] RubyAMF 1.3.4 Preview In-Reply-To: References: <20071016092243.3a3bb6a4.seth@4thtemple.com> Message-ID: Why would Scotty Nguyen say 'Austin Powers'? Just doesn't make sense... ;P On Oct 16, 2007, at 12:27 PM, aaron smith wrote: > or austin powers. > > On 10/16/07, seth wrote: > As Scotty Nguyen would say... "Yeah Baby!" > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071016/8e8b4b3d/attachment.html From beingthexemplary at gmail.com Tue Oct 16 12:59:20 2007 From: beingthexemplary at gmail.com (aaron smith) Date: Tue, 16 Oct 2007 09:59:20 -0700 Subject: [RubyAMF] RubyAMF 1.3.4 Preview In-Reply-To: References: <20071016092243.3a3bb6a4.seth@4thtemple.com> Message-ID: no, austin powers says yeah baby. On 10/16/07, grimmwerks wrote: > > Why would Scotty Nguyen say 'Austin Powers'? Just doesn't make sense... > > ;P > > > On Oct 16, 2007, at 12:27 PM, aaron smith wrote: > > or austin powers. > > On 10/16/07, seth wrote: > > > > As Scotty Nguyen would say... "Yeah Baby!" > > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071016/bd26949f/attachment.html From chuck at chuckfletcher.com Wed Oct 17 12:14:57 2007 From: chuck at chuckfletcher.com (chuck at chuckfletcher.com) Date: Wed, 17 Oct 2007 12:14:57 -0400 Subject: [RubyAMF] 2 Questions for Aaron Message-ID: <47163501.4080107@chuckfletcher.com> 1. Is this error something I need to worrry about? is this missing or just not needed? any way I can get it out of the log? "RubyamfController: missing default helper path rubyamf_helper" 2. Is RubyAMF mongrel dependant? It doesn't seem to work via fastCGI on port 80... Thanks! Chuck -- *Chuck Fletcher* Technology Director DOMANI STUDIOS 45 Main St. Suite 206 Brooklyn, NY 11201 Email: cfletcher at domanistudios.com AIM: domanichuck Linked In: chuckfletcher p: 718.797.4470 ext 128 c: 646.369.9389 f: 610.728.0033 From aaron at rubyamf.org Wed Oct 17 13:53:24 2007 From: aaron at rubyamf.org (Aaron Smith) Date: Wed, 17 Oct 2007 10:53:24 -0700 Subject: [RubyAMF] 2 Questions for Aaron In-Reply-To: <47163501.4080107@chuckfletcher.com> References: <47163501.4080107@chuckfletcher.com> Message-ID: Hey Chuck, No that is not anything to worry about. It's complaining about a missing helper, which is just a standard rails file. if you create an empty rubyamf_helper.rb fine it will suppress it. No rubyamf is not mogrel dependant. -Aaron On 10/17/07, chuck at chuckfletcher.com wrote: > > 1. Is this error something I need to worrry about? is this missing or > just not needed? any way I can get it out of the log? > "RubyamfController: missing default helper path rubyamf_helper" > > 2. Is RubyAMF mongrel dependant? It doesn't seem to work via fastCGI on > port 80... > > Thanks! > > Chuck > > -- > *Chuck Fletcher* > Technology Director > > DOMANI STUDIOS > 45 Main St. Suite 206 > Brooklyn, NY 11201 > > Email: cfletcher at domanistudios.com > AIM: domanichuck > Linked In: chuckfletcher > p: 718.797.4470 ext 128 > c: 646.369.9389 > f: 610.728.0033 > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071017/4b2a8d19/attachment.html From chuck at chuckfletcher.com Wed Oct 17 13:57:28 2007 From: chuck at chuckfletcher.com (chuck at chuckfletcher.com) Date: Wed, 17 Oct 2007 13:57:28 -0400 Subject: [RubyAMF] 2 Questions for Aaron In-Reply-To: References: <47163501.4080107@chuckfletcher.com> Message-ID: <47164D08.2030906@chuckfletcher.com> Cool. Thanks. Any idea why I can't seem to get rubyamf to work on port 80 with fastcgi? Works fine when I'm running a mongrel on 3000, but not with fastcgi... Thanks again, Chuck Aaron Smith wrote: > Hey Chuck, > > No that is not anything to worry about. It's complaining about a > missing helper, which is just a standard rails file. if you create an > empty rubyamf_helper.rb fine it will suppress it. > > No rubyamf is not mogrel dependant. > > -Aaron > > On 10/17/07, *chuck at chuckfletcher.com > * > wrote: > > 1. Is this error something I need to worrry about? is this > missing or > just not needed? any way I can get it out of the log? > "RubyamfController: missing default helper path rubyamf_helper" > > 2. Is RubyAMF mongrel dependant? It doesn't seem to work via > fastCGI on > port 80... > > Thanks! > > Chuck > > -- > *Chuck Fletcher* > Technology Director > > DOMANI STUDIOS > 45 Main St. Suite 206 > Brooklyn, NY 11201 > > Email: cfletcher at domanistudios.com > > > > AIM: domanichuck > Linked In: chuckfletcher < http://www.linkedin.com/in/chuckfletcher> > p: 718.797.4470 ext 128 > c: 646.369.9389 > f: 610.728.0033 > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > From aaron at rubyamf.org Wed Oct 17 13:58:06 2007 From: aaron at rubyamf.org (Aaron Smith) Date: Wed, 17 Oct 2007 10:58:06 -0700 Subject: [RubyAMF] 2 Questions for Aaron In-Reply-To: <47164D08.2030906@chuckfletcher.com> References: <47163501.4080107@chuckfletcher.com> <47164D08.2030906@chuckfletcher.com> Message-ID: are you running it on rails or Lite? On 10/17/07, chuck at chuckfletcher.com wrote: > > Cool. Thanks. > > Any idea why I can't seem to get rubyamf to work on port 80 with fastcgi? > > Works fine when I'm running a mongrel on 3000, but not with fastcgi... > > Thanks again, > > Chuck > > Aaron Smith wrote: > > Hey Chuck, > > > > No that is not anything to worry about. It's complaining about a > > missing helper, which is just a standard rails file. if you create an > > empty rubyamf_helper.rb fine it will suppress it. > > > > No rubyamf is not mogrel dependant. > > > > -Aaron > > > > On 10/17/07, *chuck at chuckfletcher.com > > * > > wrote: > > > > 1. Is this error something I need to worrry about? is this > > missing or > > just not needed? any way I can get it out of the log? > > "RubyamfController: missing default helper path > rubyamf_helper" > > > > 2. Is RubyAMF mongrel dependant? It doesn't seem to work via > > fastCGI on > > port 80... > > > > Thanks! > > > > Chuck > > > > -- > > *Chuck Fletcher* > > Technology Director > > > > DOMANI STUDIOS > > 45 Main St. Suite 206 > > Brooklyn, NY 11201 > > > > Email: cfletcher at domanistudios.com > > > > > > > > AIM: domanichuck > > Linked In: chuckfletcher < http://www.linkedin.com/in/chuckfletcher> > > p: 718.797.4470 ext 128 > > c: 646.369.9389 > > f: 610.728.0033 > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071017/bf955ca6/attachment.html From prpht9 at gmail.com Wed Oct 17 13:58:13 2007 From: prpht9 at gmail.com (chris) Date: Wed, 17 Oct 2007 13:58:13 -0400 Subject: [RubyAMF] rubyamf and og/nitro Message-ID: Hi there, I have an application I'm building and would like to use Og for ORM with a Nitro Application Server. I would like to know your recommendations for integrating this with a flex frontend. I am capable of getting the "ruby server/start" running with a TestService.hello_world responding properly from the services directory. I have a test flex frontend properly displaying the results of this method call through onCreationComplete and onResult type events. My immediate issue is getting a working example using the ObjectGraphAdapter to prove to myself an Og::Model VO can be configured and accessed properly through flex. I would like to see this working before I commit more effort into this solution. As a secondary concern I already have many models already up and running in a nitro application and 4-5 Nitro::Controller classes written. I would prefer to have rubyamf map those controller classes as services but I'm open to suggestion (eg: using the REST interfaces avail through Nitro). If a new component is necessary, similar to the rails-rubyamf-plugin, I'm willing to take this on but I'll need help. I don't know rubyamflite well enough to do it solo. I would especially like to document what I go through back into rubyamf for future Nitro/Og users. (examples, explanations and hints etc.) Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071017/5f6d2a51/attachment-0001.html From chuck at chuckfletcher.com Wed Oct 17 14:08:51 2007 From: chuck at chuckfletcher.com (chuck at chuckfletcher.com) Date: Wed, 17 Oct 2007 14:08:51 -0400 Subject: [RubyAMF] 2 Questions for Aaron In-Reply-To: References: <47163501.4080107@chuckfletcher.com> <47164D08.2030906@chuckfletcher.com> Message-ID: <47164FB3.8030400@chuckfletcher.com> rails. Aaron Smith wrote: > are you running it on rails or Lite? > > On 10/17/07, *chuck at chuckfletcher.com > * < chuck at chuckfletcher.com > > wrote: > > Cool. Thanks. > > Any idea why I can't seem to get rubyamf to work on port 80 with > fastcgi? > > Works fine when I'm running a mongrel on 3000, but not with fastcgi... > > Thanks again, > > Chuck > > Aaron Smith wrote: > > Hey Chuck, > > > > No that is not anything to worry about. It's complaining about a > > missing helper, which is just a standard rails file. if you > create an > > empty rubyamf_helper.rb fine it will suppress it. > > > > No rubyamf is not mogrel dependant. > > > > -Aaron > > > > On 10/17/07, *chuck at chuckfletcher.com > > > >* < chuck at chuckfletcher.com > > > >> wrote: > > > > 1. Is this error something I need to worrry about? is this > > missing or > > just not needed? any way I can get it out of the log? > > "RubyamfController: missing default helper path > rubyamf_helper" > > > > 2. Is RubyAMF mongrel dependant? It doesn't seem to work via > > fastCGI on > > port 80... > > > > Thanks! > > > > Chuck > > > > -- > > *Chuck Fletcher* > > Technology Director > > > > DOMANI STUDIOS > > 45 Main St. Suite 206 > > Brooklyn, NY 11201 > > > > Email: cfletcher at domanistudios.com > > > > > > > > >> > > AIM: domanichuck > > Linked In: chuckfletcher < > http://www.linkedin.com/in/chuckfletcher> > > p: 718.797.4470 ext 128 > > c: 646.369.9389 > > f: 610.728.0033 > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > From aaron at rubyamf.org Wed Oct 17 14:13:05 2007 From: aaron at rubyamf.org (Aaron Smith) Date: Wed, 17 Oct 2007 11:13:05 -0700 Subject: [RubyAMF] 2 Questions for Aaron In-Reply-To: <47164FB3.8030400@chuckfletcher.com> References: <47163501.4080107@chuckfletcher.com> <47164D08.2030906@chuckfletcher.com> <47164FB3.8030400@chuckfletcher.com> Message-ID: hmmm. that's odd. is it just rubyamf that is not working? On 10/17/07, chuck at chuckfletcher.com wrote: > > rails. > > Aaron Smith wrote: > > are you running it on rails or Lite? > > > > On 10/17/07, *chuck at chuckfletcher.com > > * < chuck at chuckfletcher.com > > > wrote: > > > > Cool. Thanks. > > > > Any idea why I can't seem to get rubyamf to work on port 80 with > > fastcgi? > > > > Works fine when I'm running a mongrel on 3000, but not with > fastcgi... > > > > Thanks again, > > > > Chuck > > > > Aaron Smith wrote: > > > Hey Chuck, > > > > > > No that is not anything to worry about. It's complaining about a > > > missing helper, which is just a standard rails file. if you > > create an > > > empty rubyamf_helper.rb fine it will suppress it. > > > > > > No rubyamf is not mogrel dependant. > > > > > > -Aaron > > > > > > On 10/17/07, *chuck at chuckfletcher.com > > > > > > >* < chuck at chuckfletcher.com > > > > > > >> wrote: > > > > > > 1. Is this error something I need to worrry about? is this > > > missing or > > > just not needed? any way I can get it out of the log? > > > "RubyamfController: missing default helper path > > rubyamf_helper" > > > > > > 2. Is RubyAMF mongrel dependant? It doesn't seem to work via > > > fastCGI on > > > port 80... > > > > > > Thanks! > > > > > > Chuck > > > > > > -- > > > *Chuck Fletcher* > > > Technology Director > > > > > > DOMANI STUDIOS > > > 45 Main St. Suite 206 > > > Brooklyn, NY 11201 > > > > > > Email: cfletcher at domanistudios.com > > > > > > > > > > > > > > > >> > > > AIM: domanichuck > > > Linked In: chuckfletcher < > > http://www.linkedin.com/in/chuckfletcher> > > > p: 718.797.4470 ext 128 > > > c: 646.369.9389 > > > f: 610.728.0033 > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > > > > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071017/5b77dea9/attachment.html From beingthexemplary at gmail.com Wed Oct 17 14:14:54 2007 From: beingthexemplary at gmail.com (aaron smith) Date: Wed, 17 Oct 2007 11:14:54 -0700 Subject: [RubyAMF] rubyamf and og/nitro In-Reply-To: References: Message-ID: Hi Chris, Gosh I'm so sorry. We actually decided to kill RubyAMF Lite which had OG support (just OG not Nitro though). So unfortunately the only way to run RubyAMF is in Rails. now. If you know how to write a plugin for Nitro or can provide me some links on a how to, I can possibly put something together or send you in the right direction. -Aaron On 10/17/07, chris wrote: > > Hi there, > > I have an application I'm building and would like to use Og for ORM with > a Nitro Application Server. I would like to know your recommendations for > integrating this with a flex frontend. > > I am capable of getting the "ruby server/start" running with a > TestService.hello_world responding properly from the services directory. > I have a test flex frontend properly displaying the results of this method > call through onCreationComplete and onResult type events. > > My immediate issue is getting a working example using the > ObjectGraphAdapter to prove to myself an Og::Model VO can be configured and > accessed properly through flex. I would like to see this working before I > commit more effort into this solution. > > As a secondary concern I already have many models already up and running > in a nitro application and 4-5 Nitro::Controller classes written. I would > prefer to have rubyamf map those controller classes as services but I'm open > to suggestion (eg: using the REST interfaces avail through Nitro). If a new > component is necessary, similar to the rails-rubyamf-plugin, I'm willing to > take this on but I'll need help. I don't know rubyamflite well enough to do > it solo. I would especially like to document what I go through back into > rubyamf for future Nitro/Og users. (examples, explanations and hints etc.) > > Thanks, > Chris > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071017/c5e3a66c/attachment.html From chuck at chuckfletcher.com Wed Oct 17 15:02:04 2007 From: chuck at chuckfletcher.com (chuck at chuckfletcher.com) Date: Wed, 17 Oct 2007 15:02:04 -0400 Subject: [RubyAMF] 2 Questions for Aaron In-Reply-To: References: <47163501.4080107@chuckfletcher.com> <47164D08.2030906@chuckfletcher.com> <47164FB3.8030400@chuckfletcher.com> Message-ID: <47165C2C.3010801@chuckfletcher.com> I have a site running on fastcgi at port 80, site works fine for all html calls. I have a mongrel running too on port 3002 for my rubyamf stuff. http://fakesite.domanistudios.com/rubyamf/gateway - Fails - "Application Failed to Start Properly" http://fakesite.domanistudios.com:3002/rubyamf/gateway - Works Ideally I'd only have to have the fastcgi running. My other option is to use Modproxy and just use mongrels on port 80, but thats more work for me with my current hosting config. Thanks, Chuck Aaron Smith wrote: > hmmm. that's odd. is it just rubyamf that is not working? > > > On 10/17/07, *chuck at chuckfletcher.com > * < chuck at chuckfletcher.com > > wrote: > > rails. > > Aaron Smith wrote: > > are you running it on rails or Lite? > > > > On 10/17/07, *chuck at chuckfletcher.com > > > >* < chuck at chuckfletcher.com > > > >> wrote: > > > > Cool. Thanks. > > > > Any idea why I can't seem to get rubyamf to work on port 80 with > > fastcgi? > > > > Works fine when I'm running a mongrel on 3000, but not with > fastcgi... > > > > Thanks again, > > > > Chuck > > > > Aaron Smith wrote: > > > Hey Chuck, > > > > > > No that is not anything to worry about. It's complaining > about a > > > missing helper, which is just a standard rails file. if you > > create an > > > empty rubyamf_helper.rb fine it will suppress it. > > > > > > No rubyamf is not mogrel dependant. > > > > > > -Aaron > > > > > > On 10/17/07, *chuck at chuckfletcher.com > > > > > > > > > >>* < chuck at chuckfletcher.com > > > > > > > > > >>> wrote: > > > > > > 1. Is this error something I need to worrry about? is > this > > > missing or > > > just not needed? any way I can get it out of the log? > > > "RubyamfController: missing default helper path > > rubyamf_helper" > > > > > > 2. Is RubyAMF mongrel dependant? It doesn't seem to > work via > > > fastCGI on > > > port 80... > > > > > > Thanks! > > > > > > Chuck > > > > > > -- > > > *Chuck Fletcher* > > > Technology Director > > > > > > DOMANI STUDIOS > > > 45 Main St. Suite 206 > > > Brooklyn, NY 11201 > > > > > > Email: cfletcher at domanistudios.com > > > > > > > > > >> > > > > > > > > > > > >>> > > > AIM: domanichuck > > > Linked In: chuckfletcher < > > http://www.linkedin.com/in/chuckfletcher > > > > > p: 718.797.4470 ext 128 > > > c: 646.369.9389 > > > f: 610.728.0033 > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > > > > > > > >> > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > ------------------------------------------------------------------------ > > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > From prpht9 at gmail.com Wed Oct 17 15:54:16 2007 From: prpht9 at gmail.com (chris) Date: Wed, 17 Oct 2007 15:54:16 -0400 Subject: [RubyAMF] rubyamf and og/nitro In-Reply-To: References: Message-ID: I don't have enough experience with Nitro internally to point you to the correct documentation. Can you give me an overview of what components you interfaced with when you created the rails plugin? I'm assuming the first thing I would need to do is get the gateway.rbconfigured correctly and route it's url properly in nitro behind webrick or mongrel. Second I would think rubyamf would need to interface with the Nitro::Application just like it does the rails Application::Instance in the services/config/application_instance_config.rb. Finally I would think I need to integrate the mapping of the vo_config.rb to the models managed by Og and make sure Og is up and running prior to starting the application. This is just a high level guess, but please correct any mistaken assumptions and expand on the above some so I can get started. Thanks, Chris BTW, when you said rubyamf-lite is killed. Do you mean "Dead?, dead." and what was the reasoning? On 10/17/07, aaron smith < beingthexemplary at gmail.com> wrote: > > Hi Chris, > > Gosh I'm so sorry. We actually decided to kill RubyAMF Lite which had OG > support (just OG not Nitro though). So unfortunately the only way to run > RubyAMF is in Rails. now. If you know how to write a plugin for Nitro or can > provide me some links on a how to, I can possibly put something together or > send you in the right direction. > > -Aaron > > > > On 10/17/07, chris < prpht9 at gmail.com> wrote: > > > Hi there, > > > > I have an application I'm building and would like to use Og for ORM > > with a Nitro Application Server. I would like to know your recommendations > > for integrating this with a flex frontend. > > > > I am capable of getting the "ruby server/start" running with a > > TestService.hello_world responding properly from the services > > directory. I have a test flex frontend properly displaying the results of > > this method call through onCreationComplete and onResult type events. > > > > My immediate issue is getting a working example using the > > ObjectGraphAdapter to prove to myself an Og::Model VO can be configured and > > accessed properly through flex. I would like to see this working before I > > commit more effort into this solution. > > > > As a secondary concern I already have many models already up and > > running in a nitro application and 4-5 Nitro::Controller classes written. I > > would prefer to have rubyamf map those controller classes as services but > > I'm open to suggestion (eg: using the REST interfaces avail through Nitro). > > If a new component is necessary, similar to the rails-rubyamf-plugin, I'm > > willing to take this on but I'll need help. I don't know rubyamflite well > > enough to do it solo. I would especially like to document what I go through > > back into rubyamf for future Nitro/Og users. (examples, explanations and > > hints etc.) > > > > Thanks, > > Chris > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071017/9c4c3861/attachment.html From beingthexemplary at gmail.com Wed Oct 17 16:09:08 2007 From: beingthexemplary at gmail.com (aaron smith) Date: Wed, 17 Oct 2007 13:09:08 -0700 Subject: [RubyAMF] rubyamf and og/nitro In-Reply-To: References: Message-ID: Here's a high level to create something like a nitro plugin: -Get requests to run through a gateway similar to rubyamf_controller.rb.. -Create a new gateway (take a look at app/rails_gateway.rb). Call it nitro_gateway.rb -Create a new action (app/actions.rb). something like NitroInvokeAction. -In the new nitro_gateway.rb. Switch out the RailsInvokeAction.new to NitroInvokeAction.new It's more or less figuring out how to send the request to the gateway, and have the NitroInvokeAction invoke the target controller / action. Take a look at the RailsInvokeAction (app/actions.rb). There is only one entry point into rails. "@service.process(...)". The "process" method is part of ActiveRecord::Base. It take a Request and Response. I simply alter the request by changing which actions on which controller it is supposed to run. Then send those duplicated objects through the process method. The requests / processing happens like this: --incoming request to RubyamfController#gateway. --rubyamf deserialize / processing --copy request / response and change the target actions --send new request through ActiveRecord::Base#process --results are serialized --render :text in rubyamf_controller with the raw AMF. -A On 10/17/07, chris wrote: > > I don't have enough experience with Nitro internally to point you to the > correct documentation. Can you give me an overview of what components you > interfaced with when you created the rails plugin? > > I'm assuming the first thing I would need to do is get the gateway.rbconfigured correctly and route it's url properly in nitro behind webrick or > mongrel. Second I would think rubyamf would need to interface with the > Nitro::Application just like it does the rails Application::Instance in the > services/config/application_instance_config.rb. Finally I would think I need > to integrate the mapping of the vo_config.rb to the models managed by Og and > make sure Og is up and running prior to starting the application. > > This is just a high level guess, but please correct any mistaken > assumptions and expand on the above some so I can get started. > > Thanks, > Chris > > BTW, when you said rubyamf-lite is killed. Do you mean "Dead?, dead." and > what was the reasoning? > > > > > On 10/17/07, aaron smith < beingthexemplary at gmail.com> wrote: > > > > Hi Chris, > > > > Gosh I'm so sorry. We actually decided to kill RubyAMF Lite which had OG > > support (just OG not Nitro though). So unfortunately the only way to run > > RubyAMF is in Rails. now. If you know how to write a plugin for Nitro or can > > provide me some links on a how to, I can possibly put something together or > > send you in the right direction. > > > > -Aaron > > > > > > > > On 10/17/07, chris < prpht9 at gmail.com> wrote: > > > > > Hi there, > > > > > > I have an application I'm building and would like to use Og for ORM > > > with a Nitro Application Server. I would like to know your recommendations > > > for integrating this with a flex frontend. > > > > > > I am capable of getting the "ruby server/start" running with a > > > TestService.hello_world responding properly from the services > > > directory. I have a test flex frontend properly displaying the results of > > > this method call through onCreationComplete and onResult type events. > > > > > > My immediate issue is getting a working example using the > > > ObjectGraphAdapter to prove to myself an Og::Model VO can be configured and > > > accessed properly through flex. I would like to see this working before I > > > commit more effort into this solution. > > > > > > As a secondary concern I already have many models already up and > > > running in a nitro application and 4-5 Nitro::Controller classes written. I > > > would prefer to have rubyamf map those controller classes as services but > > > I'm open to suggestion (eg: using the REST interfaces avail through Nitro). > > > If a new component is necessary, similar to the rails-rubyamf-plugin, I'm > > > willing to take this on but I'll need help. I don't know rubyamflite well > > > enough to do it solo. I would especially like to document what I go through > > > back into rubyamf for future Nitro/Og users. (examples, explanations and > > > hints etc.) > > > > > > Thanks, > > > Chris > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071017/087dac42/attachment.html From beingthexemplary at gmail.com Wed Oct 17 16:10:41 2007 From: beingthexemplary at gmail.com (aaron smith) Date: Wed, 17 Oct 2007 13:10:41 -0700 Subject: [RubyAMF] rubyamf and og/nitro In-Reply-To: References: Message-ID: We're not supporting RubyAMF Lite anymore, I've only had one person who was interested in it. Everyone else wants Rails. On 10/17/07, chris wrote: > > I don't have enough experience with Nitro internally to point you to the > correct documentation. Can you give me an overview of what components you > interfaced with when you created the rails plugin? > > I'm assuming the first thing I would need to do is get the gateway.rbconfigured correctly and route it's url properly in nitro behind webrick or > mongrel. Second I would think rubyamf would need to interface with the > Nitro::Application just like it does the rails Application::Instance in the > services/config/application_instance_config.rb. Finally I would think I need > to integrate the mapping of the vo_config.rb to the models managed by Og and > make sure Og is up and running prior to starting the application. > > This is just a high level guess, but please correct any mistaken > assumptions and expand on the above some so I can get started. > > Thanks, > Chris > > BTW, when you said rubyamf-lite is killed. Do you mean "Dead?, dead." and > what was the reasoning? > > > > > On 10/17/07, aaron smith < beingthexemplary at gmail.com> wrote: > > > > Hi Chris, > > > > Gosh I'm so sorry. We actually decided to kill RubyAMF Lite which had OG > > support (just OG not Nitro though). So unfortunately the only way to run > > RubyAMF is in Rails. now. If you know how to write a plugin for Nitro or can > > provide me some links on a how to, I can possibly put something together or > > send you in the right direction. > > > > -Aaron > > > > > > > > On 10/17/07, chris < prpht9 at gmail.com> wrote: > > > > > Hi there, > > > > > > I have an application I'm building and would like to use Og for ORM > > > with a Nitro Application Server. I would like to know your recommendations > > > for integrating this with a flex frontend. > > > > > > I am capable of getting the "ruby server/start" running with a > > > TestService.hello_world responding properly from the services > > > directory. I have a test flex frontend properly displaying the results of > > > this method call through onCreationComplete and onResult type events. > > > > > > My immediate issue is getting a working example using the > > > ObjectGraphAdapter to prove to myself an Og::Model VO can be configured and > > > accessed properly through flex. I would like to see this working before I > > > commit more effort into this solution. > > > > > > As a secondary concern I already have many models already up and > > > running in a nitro application and 4-5 Nitro::Controller classes written. I > > > would prefer to have rubyamf map those controller classes as services but > > > I'm open to suggestion (eg: using the REST interfaces avail through Nitro). > > > If a new component is necessary, similar to the rails-rubyamf-plugin, I'm > > > willing to take this on but I'll need help. I don't know rubyamflite well > > > enough to do it solo. I would especially like to document what I go through > > > back into rubyamf for future Nitro/Og users. (examples, explanations and > > > hints etc.) > > > > > > Thanks, > > > Chris > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071017/378def23/attachment-0001.html From prpht9 at gmail.com Wed Oct 17 16:15:10 2007 From: prpht9 at gmail.com (chris) Date: Wed, 17 Oct 2007 16:15:10 -0400 Subject: [RubyAMF] rubyamf and og/nitro In-Reply-To: References: Message-ID: First, this explanation is exactly what I needed. Second, count me as number 2. :) Thanks, Chris ps. I'll keep you posted on how things progress On 10/17/07, aaron smith wrote: > > We're not supporting RubyAMF Lite anymore, I've only had one person who > was interested in it. Everyone else wants Rails. > > > > On 10/17/07, chris wrote: > > > > I don't have enough experience with Nitro internally to point you to the > > correct documentation. Can you give me an overview of what components you > > interfaced with when you created the rails plugin? > > > > I'm assuming the first thing I would need to do is get the gateway.rbconfigured correctly and route it's url properly in nitro behind webrick or > > mongrel. Second I would think rubyamf would need to interface with the > > Nitro::Application just like it does the rails Application::Instance in the > > services/config/application_instance_config.rb. Finally I would think I need > > to integrate the mapping of the vo_config.rb to the models managed by Og and > > make sure Og is up and running prior to starting the application. > > > > This is just a high level guess, but please correct any mistaken > > assumptions and expand on the above some so I can get started. > > > > Thanks, > > Chris > > > > BTW, when you said rubyamf-lite is killed. Do you mean "Dead?, dead." > > and what was the reasoning? > > > > > > > > > > On 10/17/07, aaron smith < beingthexemplary at gmail.com> wrote: > > > > > > Hi Chris, > > > > > > Gosh I'm so sorry. We actually decided to kill RubyAMF Lite which had > > > OG support (just OG not Nitro though). So unfortunately the only way to run > > > RubyAMF is in Rails. now. If you know how to write a plugin for Nitro or can > > > provide me some links on a how to, I can possibly put something together or > > > send you in the right direction. > > > > > > -Aaron > > > > > > > > > > > > On 10/17/07, chris < prpht9 at gmail.com> wrote: > > > > > > > Hi there, > > > > > > > > I have an application I'm building and would like to use Og for > > > > ORM with a Nitro Application Server. I would like to know your > > > > recommendations for integrating this with a flex frontend. > > > > > > > > I am capable of getting the "ruby server/start" running with a > > > > TestService.hello_world responding properly from the services > > > > directory. I have a test flex frontend properly displaying the results of > > > > this method call through onCreationComplete and onResult type events. > > > > > > > > My immediate issue is getting a working example using the > > > > ObjectGraphAdapter to prove to myself an Og::Model VO can be configured and > > > > accessed properly through flex. I would like to see this working before I > > > > commit more effort into this solution. > > > > > > > > As a secondary concern I already have many models already up and > > > > running in a nitro application and 4-5 Nitro::Controller classes written. I > > > > would prefer to have rubyamf map those controller classes as services but > > > > I'm open to suggestion (eg: using the REST interfaces avail through Nitro). > > > > If a new component is necessary, similar to the rails-rubyamf-plugin, I'm > > > > willing to take this on but I'll need help. I don't know rubyamflite well > > > > enough to do it solo. I would especially like to document what I go through > > > > back into rubyamf for future Nitro/Og users. (examples, explanations and > > > > hints etc.) > > > > > > > > Thanks, > > > > Chris > > > > > > > > _______________________________________________ > > > > Rubyamf-discussion mailing list > > > > Rubyamf-discussion at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > > > > > _______________________________________________ > > > Rubyamf-discussion mailing list > > > Rubyamf-discussion at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > > > > > _______________________________________________ > > Rubyamf-discussion mailing list > > Rubyamf-discussion at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > > > > > _______________________________________________ > Rubyamf-discussion mailing list > Rubyamf-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubyamf-discussion > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyamf-discussion/attachments/20071017/99c7679a/attachment.html