[Rails] Troubles with ActionController::DoubleRenderError

2010-06-18 Thread Jorge alejandro Mendoza torres
Hello all! I'm having troubles with my ruby application. When I click on the submit button, the browser shows me this: We're sorry, but something went wrong. The production.log file has this text: -- Processing

[Rails] Problems with Ruby on Rails and Mechanize gem?

2010-06-04 Thread Jorge alejandro Mendoza torres
Hi all. I'm doing a web site using WWW::Mechanize. From my application, when I'm using the web site, I have a link, and when I make click on the Iink, I want to log with my google mail, this already works but now, I want to show the home page after logged. This is my source: require

[Rails] Message error with XML/SWF Charts

2010-05-28 Thread Jorge alejandro Mendoza torres
I'm making a web site with charts, I'm using XML/SWF Charts, the problem that I have is that the charts work perfectly when I'm working locally, but when I load all files to the server and I want to see the charts, the browser shows me the next message: This page requires AC_RunActiveContent.js.

[Rails] Re: When I do a migration, the changes are make in the test db

2010-05-19 Thread Jorge alejandro Mendoza torres
daphonz wrote: Have you tried using: rake db:migrate RAILS_ENV=production -c On May 18, 12:35�pm, Jorge alejandro Mendoza torres li...@ruby- I already tried the instruction and the migrations were made in the production database. But I have another problem, I had a record and I

[Rails] When I do a migration, the changes are make in the test db

2010-05-18 Thread Jorge alejandro Mendoza torres
When I do a migration, the changes are make in the test database. Does anyone know the reason? In the config/environment.rb file, I have this: ENV['RAILS_ENV'] ||= 'production' And in the db/ folder, it creates a file named test.sqlite3 When I did the migrations, RoR used the test database, but

[Rails] Re: How to include a ruby gem environment.rb file?

2010-03-26 Thread Jorge alejandro Mendoza torres
Hi Lasse. I had an application in version 2.0.2 and I changed the version of the application already had, I thought it would be harder, but it was very easy. On the page you mention, as I checked it, and is very helpful. Thanks for responding. -- Posted via http://www.ruby-forum.com/. --

[Rails] How to read a xml file?

2010-03-26 Thread Jorge alejandro Mendoza torres
How to read a xml file? I have this XML source: --- ?xml version=1.0 encoding=UTF-8 standalone=yes? fichas ficha nombreGabriel/nombre apellidoMolina/apellido direccionAlfredo Vargas #36/direccion /ficha ficha

[Rails] Re: How to read a xml file?

2010-03-26 Thread Jorge alejandro Mendoza torres
There are mistakes in the first xml source, here is the good source: ?xml version=1.0 encoding=UTF-8 standalone=yes? fichas ficha firstGabriel/first lastMolina/last dirsAlfredo Vargas #36/dirs /ficha ficha firstJorge/first lastMendoza/last dirsAlguna de

[Rails] How can I convert the next line in Rails 2.3.4 to Rails 2.0.

2010-03-25 Thread Jorge alejandro Mendoza torres
How can I convert the next line in Rails 2.3.4 to Rails 2.0.2? config.gem 'panztel-actionwebservice', :lib = 'actionwebservice' I have this in my environment.rb file: #-- RAILS_GEM_VERSION = '2.0.2' unless defined?

[Rails] Changing application version

2010-03-25 Thread Jorge alejandro Mendoza torres
I have an application on Rails 2.0.2 and I want to update it to Rails 2.3.4. Do I need to do a new application and I only copy and paste the necesary files? Or, Do I can to do another thing? I tried with: rake rails:update, but nothing happened. Does anyone know how to do this? -- Posted via

[Rails] How to include a ruby gem environment.rb file?

2010-03-24 Thread Jorge alejandro Mendoza torres
I'm doing a Web Service Based on a page I found (http://blog.complitech.net/web-services-basics-ruby-on-rails/) using the rails version 2.3.4, the web service is already working, but when working on a version Previous: RAILS_GEM_VERSION = '2 .0.2 'unless defined? RAILS_GEM_VERSION I can not run

[Rails] How can I consume SOAP Web Service?

2010-03-19 Thread Jorge alejandro Mendoza torres
Please, I need to know the way to consume SOAP Web Service. I've seen some examples but I don't understand how I can do it. From the client side, I need to save the information into database. Please, somebody answer. I need your help. Thanks and greetings. Jorge Mendoza -- Posted via

[Rails] How can I conditional the validation on a model validation?

2010-03-13 Thread Jorge alejandro Mendoza torres
I'm making an application in Ruby, but I create records from text files, which contain basic information to create a record. Then I modify the records from the website, but now validating all fields. What I do is validate some fields when the record is created from the text file, and then validate