Re: [Rails] Generating new application creates a few syntactically bad files in Rails 3.2.1

2012-03-02 Thread nosretep
It appears to be a 1.9.2 addition. On Friday, March 2, 2012 1:32:00 PM UTC-5, Walter Lee Davis wrote: > > > On Mar 2, 2012, at 1:20 PM, nosretep wrote: > > > Running "rails new yourapplicationname" creates all the requisite files, > however two of them have bad sy

[Rails] JRuby with Ruby on Rails HTTP Streaming outputting odd characters

2012-03-02 Thread nosretep
I'm using Ruby on Rails with JRuby on Tomcat. This is my controller: class ApplicationController < ActionController::Base def index render :stream => true, :text => "Hello World!" end end This is the output: c Hello World! 0 Does anyone have any idea why the "c" or the "0" charac

[Rails] Generating new application creates a few syntactically bad files in Rails 3.2.1

2012-03-02 Thread nosretep
Running "rails new yourapplicationname" creates all the requisite files, however two of them have bad syntax. session_store.rb is: YourApplicationName::Application.config.session_store :cookie_store, key: '_yourapplicationname_session' should be: YourApplicationName::Application.config.session

[Rails] Re: HTTP Streaming with Ruby on Rails running with JRuby (on Tomcat)

2012-03-02 Thread nosretep
On Friday, March 2, 2012 3:33:40 AM UTC-5, mkristian wrote: > > this feature needs Fiber and that you have only with ruby 1.9.x, i.e. > you need to use jruby in 1.9 mode. there is options setting in jruby- > rack (or in warbler). > Yes, just found that. This now works. warble.rb: Warbler::Conf

[Rails] HTTP Streaming with Ruby on Rails running with JRuby (on Tomcat)

2012-03-01 Thread nosretep
Is there any way to utilize Rails HTTP Streaming, the conventional way provided in Ruby on Rails 3.1, with JRuby (running in Tomcat)? I did not expect this to work, but I'll post the error message anyway: NameError (uninitialized constant ActionView::StreamingTemplateRenderer::Fiber): /path/

[Rails] Re: Are there any "clean" alternatives to Unicorn for HTTP streaming?

2012-02-29 Thread nosretep
Unicorn is "clean". What I should have wrote is "In addition to Unicorn, are there any other HTTP Servers, for Ruby on Rails, that "cleanly" support HTTP streaming?" Thank you! On Feb 29, 10:41 pm, nosretep wrote: > Are there any "clean" alterna

[Rails] Are there any "clean" alternatives to Unicorn for HTTP streaming?

2012-02-29 Thread nosretep
Are there any "clean" alternatives to Unicorn for HTTP streaming? By "clean" I mean using the :stream option during render. class MyController < ActionController::Base def index render :stream => true end end -- You received this message because you are subscribed to the Google Groups "

[Rails] Getting ArgumentError calling initialize with ActiveResource 3.2.1

2012-02-28 Thread nosretep
instantiate_record calls new, and new implicitly calls initialize (unless I'm not understanding the mystery) In base.rb def instantiate_record(record, prefix_options = {}) new(record, true).tap do |resource| resource.prefix_options = prefix_options end end As it's written get an Argument

[Rails] Re: Gem for displaying international postal addresses?

2010-07-21 Thread nosretep
Looks like a great start. Thank you! On Jul 21, 3:38 am, Gilbo wrote: > http://github.com/cainlevy/snailmay be a start > > On Jul 20, 11:14 pm, nosretep wrote: > > > Is there a Gem that can be utilized for displaying postal addresses in > > the format specific to thei

[Rails] Gem for displaying international postal addresses?

2010-07-21 Thread nosretep
Is there a Gem that can be utilized for displaying postal addresses in the format specific to their destination country or region? Basically, a Gem that programatically does what this site advises? http://www.bitboost.com/ref/international-address-formats.html Anything similar? Thanks! -- You