Re: [Rails] Question regarding controller actions (And a little bit of REST)

2010-07-21 Thread Marco Antonio Filho
Thank you guys. Bill, you helped me a lot. That was exactly what I needed to hear. Well, I came here once again just to share this article that I found that answers my questions too. In case someone have the same question.

[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

Re: [Rails] Saving XMLSchema datetime into sqlite/mysql

2010-07-21 Thread Hassan Schroeder
On Tue, Jul 20, 2010 at 1:31 PM, Steve Root ukr...@gmail.com wrote: If I save that to a regular string I get what looks correct to me: 2010-07-20 11:49:19 but saved in the entrycreated column it outputs as: Sat Jan 01 11:49:19 UTC 2000 How are you trying to save this? As a string? bird =

[Rails] Please help -- Getting error ERROR NoMethodError: private method `gsub!' called for #Class:0x47a8e38

2010-07-21 Thread Sony Thomas
[2010-07-21 11:35:18] ERROR NoMethodError: private method `gsub!' called for #Class:0x47a8e38 C:/Applns/Ruby187/lib/ruby/1.8/webrick/htmlutils.rb:16:in `escape' C:/Applns/Ruby187/lib/ruby/1.8/webrick/httpresponse.rb:232:in `set_error'

Re: [Rails] Please help -- Getting error ERROR NoMethodError: private method `gsub!' called for #Class:0x47a8e38

2010-07-21 Thread kannav rajeev
Write the code here pleZse On Wed, Jul 21, 2010 at 12:09 PM, Sony Thomas sony.thom...@wipro.com wrote: [2010-07-21 11:35:18] ERROR NoMethodError: private method `gsub!' called for #Class:0x47a8e38        C:/Applns/Ruby187/lib/ruby/1.8/webrick/htmlutils.rb:16:in `escape'        

[Rails] Re: Saving XMLSchema datetime into sqlite/mysql

2010-07-21 Thread Frederick Cheung
On Jul 20, 9:31 pm, Steve Root ukr...@gmail.com wrote: If I save that to a regular string I get what looks correct to me: 2010-07-20 11:49:19 but saved in the entrycreated column it outputs as: Sat Jan 01 11:49:19 UTC 2000 Is you entrycreated column a time column ? Time columns only save

Re: [Rails] %=h...%

2010-07-21 Thread Frederick Cheung
On 21 Jul 2010, at 01:56, Abder-Rahman Ali wrote: In the Head First Rails book, it mentions that h in %=h...% is a helper method. Can someone describe what that means? And, when should I use %=h...%? Is it when I want the result to be displayed on my view for example? h is short for

RE: [Rails] Please help -- Getting error ERROR NoMethodError: private method `gsub!' called for #Class:0x47a8e38

2010-07-21 Thread sony.thomas4
Just try to http://localhost:3000/; after starting the webrick server. :-( -Original Message- From: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-t...@googlegroups.com] On Behalf Of kannav rajeev Sent: Wednesday, July 21, 2010 12:37 PM To: rubyonrails-talk@googlegroups.com

Re: [Rails] Please help -- Getting error ERROR NoMethodError: private method `gsub!' called for #Class:0x47a8e38

2010-07-21 Thread kannav rajeev
sorry i don't think these lines given below are help full to find out error run ruby script/server -t Goto Yours development log file copy all the text and paste all text of that file here -- Thanks: Rajeev sharma -- You received this message because you are subscribed to the Google Groups

RE: [Rails] Please help -- Getting error ERROR NoMethodError: private method `gsub!' called for #Class:0x47a8e38

2010-07-21 Thread sony.thomas4
I got invalid option for -t Please check below ruby script/server -t = Booting WEBrick... server: invalid option: -t = Rails 2.2.3 application started on http://0.0.0.0:3000 = Ctrl-C to shutdown server; call with --help for options [2010-07-21 12:43:28] INFO WEBrick 1.3.1 [2010-07-21 12:43:28]

[Rails] Ruby ORM and other tools for CUBRID Database System

2010-07-21 Thread CUBRID
Hello, My name is Esen Sagynov. I am a developer and a project manager at CUBRID Database Development Team. First, let me briefly introduce CUBRID. It is an free open source relational database management system highly optimized for Web applications (http://www.cubrid.org). We have developed the

RE: [Rails] Please help -- Getting error ERROR NoMethodError: private method `gsub!' called for #Class:0x47a8e38

2010-07-21 Thread sony.thomas4
One more point like I have tried to configure my DB in database.yml. It was development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000 I changed to development: adapter: mysql database: library_development username: root password: * host:

Re: [Rails] Please help -- Getting error ERROR NoMethodError: private method `gsub!' called for #Class:0x47a8e38

2010-07-21 Thread kannav rajeev
its yours first application on rails ? On Wed, Jul 21, 2010 at 1:01 PM, sony.thom...@wipro.com wrote: One more point like  I have tried to configure my DB in database.yml. It was development:  adapter: sqlite3  database: db/development.sqlite3  pool: 5  timeout: 5000 I changed to

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

2010-07-21 Thread Gilbo
http://github.com/cainlevy/snail may be a start On Jul 20, 11:14 pm, nosretep playersp...@gmail.com wrote: 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

[Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Sur Max
render :js is something that can be used in place of the render :update. Which means, the request type should be XHR and not HTTP... in simple words, the render :js will only work for Ajax requests. If you want something of this sort for the normal HTTP requests... it can be achieved by

[Rails] Re: Get pid of memcached instance my app is connected to?

2010-07-21 Thread Max Williams
Marc Byrd wrote: CACHE.stats[:pid] m ah thanks Marc - with my version it's actually CACHE.stats[pid] but you put me on the right track :) cheers! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: setup not invoked during unit testing

2010-07-21 Thread Andy Joel
Frederick Cheung wrote: On Jul 20, 3:57�pm, Andy Joel li...@ruby-forum.com wrote: test_setup does get invoked, so the file is being processed. I am guessing that somewhere there is another setup method that takes priority, but where would it be, and why does it take priority over this one?

[Rails] Re: %=h...%

2010-07-21 Thread Abder-Rahman Ali
Frederick Cheung wrote: On 21 Jul 2010, at 01:56, Abder-Rahman Ali wrote: In the Head First Rails book, it mentions that h in %=h...% is a helper method. Can someone describe what that means? And, when should I use %=h...%? Is it when I want the result to be displayed on my view for

[Rails] Re: %=h...%

2010-07-21 Thread Frederick Cheung
On Jul 21, 9:37 am, Abder-Rahman Ali li...@ruby-forum.com wrote: Fred, can you just clarify? - html_escape http://api.rubyonrails.org/classes/ERB/Util.html#M000138 - XSS attacks that's a huge topic - http://lmgtfy.com/?q=XSS+attacks Fred -- You received this message because you are

RE: [Rails] Please help -- Getting error ERROR NoMethodError: private method `gsub!' called for #Class:0x47a8e38

2010-07-21 Thread sony.thomas4
S :-) -Original Message- From: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-t...@googlegroups.com] On Behalf Of kannav rajeev Sent: Wednesday, July 21, 2010 1:05 PM To: rubyonrails-talk@googlegroups.com Subject: Re: [Rails] Please help -- Getting error ERROR NoMethodError:

[Rails] Re: %=h...%

2010-07-21 Thread Abder-Rahman Ali
Frederick Cheung wrote: On Jul 21, 9:37�am, Abder-Rahman Ali li...@ruby-forum.com wrote: Fred, can you just clarify? - html_escape http://api.rubyonrails.org/classes/ERB/Util.html#M000138 - XSS attacks that's a huge topic - http://lmgtfy.com/?q=XSS+attacks Fred Thanks Fred. --

[Rails] SOLVED: Association record duplication

2010-07-21 Thread pepe
Never mind. Got it working. I should pay more attention to the documentation. Sorry to waste your time. On Jul 20, 8:10 pm, pepe p...@betterrpg.com wrote: I have an edit page that generates a few input fields I organized in a table, like so:       tr         tdDriver License/td         td  

[Rails] Re: using form_tag inside a helper

2010-07-21 Thread Tyler
That didn't quite work for me, but I have made it work using concat: def search_form form_tag do concat ( text_field_tag( :name ) + text_field_tag( :lastname ) ) end On May 26, 5:41 am, Pablo Gonzalez li...@ruby-forum.com wrote: Ball, Donald A Jr (Library) wrote: The proper

[Rails] Rails + Google Maps 3

2010-07-21 Thread Manos Kar
Hi, I would like to ask if there is a plugin compatible with new Google Maps Api 3. I would like to use api 3 instead of 2 as it has better geocoding and reverse geocoding capabilities. Thank you in advance -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Re: Re: Re: Memcache

2010-07-21 Thread Prachi Tripathi
Hi Jeffrey, I kept the folowing configuration only: config.cache_store = :mem_cache_store and it works. But now i want to try other way that is creating an instance like this: memcache_options = { :compression = true, :debug = false, :namespace = mem-#{RAILS_ENV}, :readonly = false,

[Rails] = sign at end of plain text sent by mailer

2010-07-21 Thread Martin Hawkins
Rails v2.3.8; Ruby v1.8.7 When sending a plain text email using ActionMailer, the email contains = signs at the end of long lines. This is a problem as I'm including a link which is bound to break over more than one line and so the user will not be able to cut and past it into a browser. Can

[Rails] Rails rake - setting constant and cache delete

2010-07-21 Thread Aldo Italo
i perform a rake task with a cron, in this task i have 2 problems: -i using a constant name setting in my config/environment.rb, when i try to run the rake job on the environment developer the constant is read an the job works fine, but when i try on the environment production the constant seem

Re: [Rails] Seeking Cofounder (aka ninja, rockstar, superman, etc)

2010-07-21 Thread Bill Walton
Hi Aaron, I'd be interested in hearing more about your idea. I'm currently employed as the lead developer for ShopKeep.com, a SaaS startup based in NYC. I telecommute from Fort Worth, Texas. The business side of my current situation isn't shaping up as I'd envisioned and so I've started

[Rails] rails partials violate javascripts same origin policy?

2010-07-21 Thread Branden Tanga
Hello, In my rails application.html.erb, I have in javascript, an ajax post call defined in a dom element's click method. This ajax call works fine whenever I'm at a view that is a standard render. However, whenever I'm at anything that is rendered using a rails partial, I get a 405 method not

[Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Mamadou Touré
Sur Max wrote: render :js is something that can be used in place of the render :update. Which means, the request type should be XHR and not HTTP... in simple words, the render :js will only work for Ajax requests. If you want something of this sort for the normal HTTP requests... it can

[Rails] Re: using form_tag inside a helper

2010-07-21 Thread Marnen Laibow-Koser
Tyler wrote: That didn't quite work for me, but I have made it work using concat: def search_form form_tag do concat ( text_field_tag( :name ) + text_field_tag( :lastname ) ) end You shouldn't need the concat. It's not actually doing anything. Best, --  Marnen

[Rails] Re: Seeking Cofounder (aka ninja, rockstar, superman, etc)

2010-07-21 Thread Aaron Price
Bill - Can you email me at aprice @ ready set wow .com (no spacses, obviously) so we can talk? I can't find any contact info from you here. Thanks, Aaron Bill Walton wrote: Hi Aaron, I'd be interested in hearing more about your idea. I'm currently employed as the lead developer for

[Rails] Re: rails partials violate javascripts same origin policy?

2010-07-21 Thread Frederick Cheung
On Jul 21, 1:16 pm, Branden Tanga li...@ruby-forum.com wrote: Hello, In my rails application.html.erb, I have in javascript, an ajax post call defined in a dom element's click method. This ajax call works fine whenever I'm at a view that is a standard render. However, whenever I'm at

[Rails] Re: Saving XMLSchema datetime into sqlite/mysql

2010-07-21 Thread Steve Root
On 21 July, 08:08, Frederick Cheung frederick.che...@gmail.com wrote: On Jul 20, 9:31 pm, Steve Root ukr...@gmail.com wrote: If I save that to a regular string I get what looks correct to me: 2010-07-20 11:49:19 but saved in the entrycreated column it outputs as: Sat Jan 01 11:49:19 UTC

[Rails] Generating RDoc for App

2010-07-21 Thread Will Clark
I notice that when I run rake doc:app, that the named_scope declarations I have in my models aren't being included in the documentation. Is there a way to get named_scopes in the rdocs? Thanks, Will -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Sur Max
You need to use Ajax there. Instead of form_for you will need to use form_remote_for. regards, Sur http://crimson9.com Mamadou Touré wrote: Sur Max wrote: render :js is something that can be used in place of the render :update. Which means, the request type should be XHR and not HTTP...

[Rails] IDs problem

2010-07-21 Thread Lily ^_^
Hi, I have a model Theme which has_and_belongs_to_many Lessons. I need to get the (db) id of the lessons through the theme. For instance, if in irb I write something like this : test = Theme.find(:first) puts test.lessons.first.id I get the ID of test (the theme) and not of the lesson. Do you

Re: [Rails] IDs problem

2010-07-21 Thread Sergio Sergio
Maybe they have the same id :-), checkout your database and see if they have the same id 2010/7/21 Lily ^_^ li...@ruby-forum.com Hi, I have a model Theme which has_and_belongs_to_many Lessons. I need to get the (db) id of the lessons through the theme. For instance, if in irb I write

[Rails] Re: Re: Prefix a drop-down with Select Item -- Rails way?

2010-07-21 Thread Marnen Laibow-Koser
Dave Aronson wrote: On Tue, Jul 20, 2010 at 16:22, Marnen Laibow-Koser li...@ruby-forum.com wrote: Why do you think Dave's sensibilities were offended? �There's nothing in his post as I read it that would support that interpretation. Thank you, my knight in shining armor! ;-) You're

[Rails] Re: IDs problem

2010-07-21 Thread Lily ^_^
Sergio Sergio wrote: Maybe they have the same id :-), checkout your database and see if they have the same id 2010/7/21 Lily ^_^ li...@ruby-forum.com Already checked :) The parent has ID 3 in its table. The lesson has ID 1 in its table. And thetheme.thelesson.id gives 3... Well actually

[Rails] produce html flash message with csv action

2010-07-21 Thread Me
How would I produce an HTML flash message on the screen if I call an action.csv in the page? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this

Re: [Rails] = sign at end of plain text sent by mailer

2010-07-21 Thread Philip Hallstrom
Rails v2.3.8; Ruby v1.8.7 When sending a plain text email using ActionMailer, the email contains = signs at the end of long lines. This is a problem as I'm including a link which is bound to break over more than one line and so the user will not be able to cut and past it into a browser.

Re: [Rails] Re: IDs problem

2010-07-21 Thread Sergio Sergio
then, the lesson.id is incorrect but the lesson.title is ok ?... does your HABTM table contains just the theme_id and lesson_id fields ? 2010/7/21 Lily ^_^ li...@ruby-forum.com Sergio Sergio wrote: Maybe they have the same id :-), checkout your database and see if they have the same id

[Rails] Re: IDs problem

2010-07-21 Thread Frederick Cheung
On Jul 21, 4:14 pm, Lily ^_^ li...@ruby-forum.com wrote: Hi, I have a model Theme which has_and_belongs_to_many Lessons. I need to get the (db) id of the lessons through the theme. For instance, if in irb I write something like this : test = Theme.find(:first) puts test.lessons.first.id

[Rails] Re: IDs problem

2010-07-21 Thread Lily ^_^
Frederick Cheung wrote: On Jul 21, 4:14�pm, Lily ^_^ li...@ruby-forum.com wrote: I get the ID of test (the theme) and not of the lesson. Do you know how to get the id of the nested object instead ? if your join table has an id column weird stuff like this will happen Fred Thank you so

[Rails] Creating new database

2010-07-21 Thread tashfeen.ekram
I have a development db for my app and wanted to create a new development db. so, i created a new and changed the config files as needed. one but i can not do any new migrations. i tried rake db:reset and rake db:migrate:reset however it gives me the error that a certain table is not found. I can

[Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Mamadou Touré
Sur Max wrote: You need to use Ajax there. Instead of form_for you will need to use form_remote_for. regards, Sur http://crimson9.com Thanks Sur, it works, but I need one more thing. When I hit the submit button, this will trigger process that creates the xdp files, but with this

[Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Sur Max
:) I would suggest you to read about the Ajax/RJS in general and in Rails. There are numerous free books/resources available. For the stuff you just asked, it's like this It's called indicator, for which most of the world use an animated gif image for the purpose. So you need to put an

Re: [Rails] Re: Re: Re: Memcache

2010-07-21 Thread Jeffrey L. Taylor
You are fighting Rails, in my experience not a time effective thing to do. Why do you want use Rails and not do it the Rails way? Jeffrey Quoting Prachi Tripathi li...@ruby-forum.com: Hi Jeffrey, I kept the folowing configuration only: config.cache_store = :mem_cache_store and it works.

[Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Sur Max
Correct it %= form_remote_for :some_symbol, :url = the_url_youve_given, :loading = $('any_uniq_indicator_id').show(), :complete = $('any_uniq_indicator_id').hide() % In complete, it should be hide() regards, Sur http://crimson9.com -- Posted via http://www.ruby-forum.com/. -- You

Re: [Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Hassan Schroeder
2010/7/21 Mamadou Touré li...@ruby-forum.com: Thanks Sur, it works, but I need one more thing. When I hit the submit button, this will trigger process that creates the xdp files, but with this change now, the page is too silent during the process (the mouse cursor does not move, everything is

Re: [Rails] Generating RDoc for App

2010-07-21 Thread Bala Paranj
Even IDE s have problem with named_scopes. I don't think RDoc can recognize it. Besides looking like a train wreck, that's one of the reason I don't like named_scopes. On Wed, Jul 21, 2010 at 7:23 AM, Will Clark li...@ruby-forum.com wrote: I notice that when I run rake doc:app, that the

Re: [Rails] Seeking Cofounder (aka ninja, rockstar, superman, etc)

2010-07-21 Thread Bill Walton
My sincerest apologies to the list for this faux paux. Just one more example of the value of a non-interrupt-able schedule ;-) Best regards, Bill On Wed, Jul 21, 2010 at 7:14 AM, Bill Walton bwalton...@gmail.com wrote: Hi Aaron, I'd be interested in hearing more about your idea. I'm

[Rails] Re: Generating RDoc for App

2010-07-21 Thread Marnen Laibow-Koser
Bala Paranj wrote: Even IDE s have problem with named_scopes. Who cares about IDEs? :) No IDE that I'm aware of really works well with Ruby's dynamic features. IMHO, that's a reason to not use an IDE for Ruby. I don't think RDoc can recognize it. I think you're right, but it wouldn't

Re: [Rails] Re: Generating RDoc for App

2010-07-21 Thread Bill Walton
On Wed, Jul 21, 2010 at 1:21 PM, Marnen Laibow-Koser li...@ruby-forum.com wrote: I think you're right, but it wouldn't be hard to patch RDoc to recognize it if you want to. Code, as opposed to unsubstantiated assertions, would be much more credible. Bill -- You received this message because

[Rails] Send picture from iPhone

2010-07-21 Thread André
I'm working on a project that needs a picture taken from an iPhone to be sent to a Rails back end, which uses paperclip. I'm trying to send it via http post but i get the following error: We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it

[Rails] cgi_process.rb:22:in `__send__': undefined method `env_table

2010-07-21 Thread Jesus Granados
.htaccess is like this... AddHandler fcgid-script .fcgi RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^(.*)$ dispatch.cgi [QSA,L] --- commented RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] if I run ./dispatch.rb

[Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Mamadou Touré
Sur Max wrote: Correct it %= form_remote_for :some_symbol, :url = the_url_youve_given, :loading = $('any_uniq_indicator_id').show(), :complete = $('any_uniq_indicator_id').hide() % In complete, it should be hide() regards, Sur http://crimson9.com Thanks a lot Sur, it works

Re: [Rails] Association record duplication

2010-07-21 Thread Colin Law
On 21 July 2010 01:10, pepe p...@betterrpg.com wrote: I have an edit page that generates a few input fields I organized in a table, like so:      tr        tdDriver License/td        td          input id=person_accounts_attributes_0_account_documents_attributes_1_number

[Rails] Re: produce html flash message with csv action

2010-07-21 Thread Me
solved On Jul 21, 10:31 am, Me chabg...@gmail.com wrote: How would I produce an HTML flash message on the screen if I call an action.csv in the page? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Sur Max
You are welcome I am glad it helped you :) Vous êtes les bienvenus Je suis content que vous avez aidé :) regards, Sur http://crimson9.com -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

[Rails] Re: render :js = alert('Test !')

2010-07-21 Thread Mamadou Touré
Sur Max wrote: You are welcome I am glad it helped you :) Vous êtes les bienvenus Je suis content que vous avez aidé :) regards, Sur http://crimson9.com Merci ;-)) We say Je suis content de vous avoir aidé instead of 'que vous avez aidé' anyway, your french is good ;-)) --

[Rails] Re: many to many relations

2010-07-21 Thread Matt Jones
On Jul 20, 11:00 am, Eduard Martini eduard.mart...@gmail.com wrote: in authors model: has_one: city_of_birth, :table = cities has_one :city_of_death, :table = cities in authors table: city_of_birth_id, city_of_death_id author instance: @author.city_of_birth @author.city_of_death

[Rails] Re: Re: Generating RDoc for App

2010-07-21 Thread Will Clark
For anyone interested, I emailed Eric Hodel who mentioned that it is possible: === You'll need ## above your comment like: # This is the test model class Test ActiveRecord::Base ## # Sort all tests by name named_scope :sort_by_name, :order = name ASC end See 'Metaprogrammed Methods'

[Rails] Re: Ruby ORM and other tools for CUBRID Database System

2010-07-21 Thread Matt Jones
On Jul 21, 3:07 am, CUBRID kadish...@gmail.com wrote: Hello, My name is Esen Sagynov. I am a developer and a project manager at CUBRID Database Development Team. First, let me briefly introduce CUBRID. It is an free open source relational database management system highly optimized for Web

Re: [Rails] Rails views now display as verbatim HTML

2010-07-21 Thread Tom Trebisky
I have made some progress on this. I am running my rails apps as a mongrel cluster behind an apache server with an Apache reverse proxy set up. This has been just fine until very recently. If I go directly to the mongrel server via http://localhost:8001 everything is fine. It is when I go to

[Rails] Re: Re: Generating RDoc for App

2010-07-21 Thread Marnen Laibow-Koser
Bill Walton wrote: On Wed, Jul 21, 2010 at 1:21 PM, Marnen Laibow-Koser li...@ruby-forum.com wrote: I think you're right, but it wouldn't be hard to patch RDoc to recognize it if you want to. Code, as opposed to unsubstantiated assertions, would be much more credible. The OP's problem

Re: [Rails] Rails views now display as verbatim HTML

2010-07-21 Thread Hassan Schroeder
On Wed, Jul 21, 2010 at 3:40 PM, Tom Trebisky t...@mmto.org wrote: If I go directly to the mongrel server via http://localhost:8001 everything is fine.  It is when I go to the apache public URL that my pages do not render.  Apparently apache is setting the Content-Type to text/plain and this

Re: [Rails] Rails views now display as verbatim HTML

2010-07-21 Thread Tom Trebisky
On Wed, Jul 21, 2010 at 04:00:11PM -0700, Hassan Schroeder wrote: On Wed, Jul 21, 2010 at 3:40 PM, Tom Trebisky t...@mmto.org wrote: If I go directly to the mongrel server via http://localhost:8001 everything is fine. ?It is when I go to the apache public URL that my pages do not render.

Re: [Rails] Rails views now display as verbatim HTML

2010-07-21 Thread Hassan Schroeder
On Wed, Jul 21, 2010 at 4:27 PM, Tom Trebisky t...@mmto.org wrote: I use telnet localhost 8001 then type GET / HTTP/1.1 followed by two returns and then I get the server response. I'd suggest using Firebug for a more realistic environment (sending Accept headers, etc. with the request) but

Re: [Rails] Rails views now display as verbatim HTML

2010-07-21 Thread Tom Trebisky
On Wed, Jul 21, 2010 at 04:42:24PM -0700, Hassan Schroeder wrote: I'd suggest using Firebug for a more realistic environment (sending Accept headers, etc. with the request) but regardless -- What version of Ruby and Mongrel are you using? Ruby is version 1.8.6 Rails is 2.3.5 However, this

[Rails] Re: Anyway for a model to call url_for?

2010-07-21 Thread Daniel Ceballos
Brittain wrote: Or better yet, a named route? Tried lots of searches and ugly hacks ... Thanks in advance. Hi! here's one way to do it: ActionController::Integration::Session.new.url_for(:host = , :controller = , :action = ) cheers -- Posted via http://www.ruby-forum.com/. -- You

Re: [Rails] Rails views now display as verbatim HTML

2010-07-21 Thread Tom Trebisky
On Wed, Jul 21, 2010 at 04:42:24PM -0700, Hassan Schroeder wrote: What version of Ruby and Mongrel are you using? Ruby is version 1.8.6 Rails is 2.3.5 Mongrel is 1.1.5 -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

Re: [Rails] Rails views now display as verbatim HTML

2010-07-21 Thread Hassan Schroeder
On Wed, Jul 21, 2010 at 5:00 PM, Tom Trebisky t...@mmto.org wrote: However, this application was built long ago, probably with rails 1.2.3 and may be inheriting old behaviors. The only rails now installed on my server though is 2.3.5 Are you absolutely sure the old version of rails isn't in

Re: [Rails] Rails views now display as verbatim HTML

2010-07-21 Thread Tom Trebisky
On Wed, Jul 21, 2010 at 05:27:54PM -0700, Hassan Schroeder wrote: Are you absolutely sure the old version of rails isn't in the app's vendor directory? At this point, there aren't many things I am absolutely sure of. :-) What's in /vendor, /vendor/gems and /vendor/plugins ? My application

Re: [Rails] Rails views now display as verbatim HTML

2010-07-21 Thread Hassan Schroeder
On Wed, Jul 21, 2010 at 6:02 PM, Tom Trebisky t...@mmto.org wrote: At this point, there aren't many things I am absolutely sure of. :-) :-) The old rails versions used to be here also, but were deleted months ago to avoid mischief and confusion. Is there a line in config/environment.rb that

Re: [Rails] Rails views now display as verbatim HTML

2010-07-21 Thread Tom Trebisky
On Wed, Jul 21, 2010 at 06:20:45PM -0700, Hassan Schroeder wrote: Is there a line in config/environment.rb that starts with RAILS_GEM_VERSION = If so, what is it? It is commented out and looks exactly like this: #RAILS_GEM_VERSION = '1.2.3' unless defined? RAILS_GEM_VERSION As I remember

Re: [Rails] Rails views now display as verbatim HTML

2010-07-21 Thread Hassan Schroeder
On Wed, Jul 21, 2010 at 6:41 PM, Tom Trebisky t...@mmto.org wrote: (~) cholla $ gem list --local Nothing's really jumping out at me from that list... I have this growing feeling that I need to start from scratch with 2.3.5 and hand migrate my application. and having been there -- yeah,

[Rails] Re: Rails views now display as verbatim HTML

2010-07-21 Thread Marnen Laibow-Koser
Hassan Schroeder wrote: On Wed, Jul 21, 2010 at 6:41 PM, Tom Trebisky t...@mmto.org wrote: (~) cholla $ gem list --local Nothing's really jumping out at me from that list... ...except for the fact that you've still got the old Rails gems you claim to have deleted. Go to the root

[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 m...@xlcrs.com wrote: http://github.com/cainlevy/snailmay be a start On Jul 20, 11:14 pm, nosretep playersp...@gmail.com wrote: Is there a Gem that can be utilized for displaying postal addresses in the format specific to

[Rails] bad content body on MC FF

2010-07-21 Thread Saurabh Peshkar
Hi All, I'm getting the following error in my production.log when I try to upload a file from MAC FF. On rest of the browsers file uploading is working fine. Rendering /home5/folder_namete/Portfolio/application_name/public/404.html (404 Not Found) /!\ FAILSAFE /!\ Wed Jul 21 07:55:45 -0600 2010

Re: [Rails] Please help -- Getting error ERROR NoMethodError: private method `gsub!' called for #Class:0x47a8e38

2010-07-21 Thread kannav rajeev
use instant rails if possible go back on ruby on rails installation again On Wed, Jul 21, 2010 at 2:27 PM, sony.thom...@wipro.com wrote: S :-) -Original Message- From: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-t...@googlegroups.com] On Behalf Of kannav rajeev Sent:

[Rails] simple syntax error(its urgent)unable 2 find

2010-07-21 Thread Tony Augustine
i have created an appliation to show the pie chart in pdf, now its showing properly, but the thing is that its not showing the labels correctly, can anyone help me, pdf of tht ia attached with this. also i had a pdf.prawn file with the code as below pdf.image

[Rails] Re: rails partials violate javascripts same origin policy?

2010-07-21 Thread Branden Tanga
Frederick Cheung wrote: On Jul 21, 1:16�pm, Branden Tanga li...@ruby-forum.com wrote: Does doing an ajax request from a rails partial really cause a same origin policy violation? If so, why? if you try and break the same origin policy you shouldn't get a 405 error - the request just doesn't

[Rails] Something went wrong.

2010-07-21 Thread Mark Horrocks
My app works fine in development on my laptop but in production on my server I get We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly. I am using Rails 3, Ruby 1.8.7, Apache and passenger 2.2.15 I get the welcome aboard page in