[Rails] Re: Rails 3.0 application Windows to Linux

2012-06-27 Thread Paulo Carvalho
Hello, Thanks for the answer. I always worked in windows. I developed my rails application on my windows environment. Now, I have a Linux environment where I would like to put my application running. To do that, Is it only necessary to pack my application directory, copy the packed file to

[Rails] Rails 3.0 application Windows to Linux

2012-06-25 Thread Paulo Carvalho
Hello, I developed a Rails 3.0 application on Windows. It connects to a couchDB database. Everything works fine. Now, I would like to take my application and put it on another machine which runs under Linux. I already migrated the database to this new machine. What is the best solution to move my

[Rails] Re: Opening a file having white spaces on is name with the default program

2012-06-13 Thread Paulo Carvalho
. Thanks Regards Colin Law wrote in post #1064223: On 12 June 2012 14:49, Paulo Carvalho li...@ruby-forum.com wrote: I've tried several ways to do it but, until now, I was not able to cmd = cmd /c start ' + f1 + ' system (cmd) But no one of these solutions has worked. Have you tried

[Rails] Opening a file having white spaces on is name with the default program

2012-06-12 Thread Paulo Carvalho
Hello, In my rails application, I have a file which name is: d:/Copy of t.txt. I want to open it with the default program. This file is a TXT file but it can be another kind of file (png, pdf, etc) and can have, or not, white spaces on his path/name. I've tried several ways to do it but, until

[Rails] Re: Opening a file having white spaces on is name with the default program

2012-06-12 Thread Paulo Carvalho
Hello, Thanks for your answer. However, still not working... f1 = d:/Copy of t.txt f1 = f1.gsub( , \\ ) #system %{cmd /c start #{f1}} #cmd = 'cmd /c start ' + f1 + '' #cmd = 'cmd /c start ' + f1 + '' #cmd = cmd /c start ' + f1 + ' cmd = cmd /c start ' + f1 + ' system (cmd) Oscar Del Ben wrote

[Rails] Paginating with couchrest_model

2012-06-07 Thread Paulo Carvalho
Hello, In my rails application, I am using couchrest_model to connect to a couchDB database. I have a model like this: [code] class Author CouchRest::Model::Base property :id, Integer property :title, String property :first_name, String property :last_name, String # view to get

[Rails] Getting model column names

2012-05-21 Thread Paulo Carvalho
Hello, I am writing a RoR application that connects to a couchDB database using couchrest_model. The definition of my model is the following one: class BdsDataAuthor CouchRest::Model::Base property :id, Integer property :first_name, String property :last_name, String end I would like

[Rails] Re: Getting model column names

2012-05-21 Thread Paulo Carvalho
Thanks for your answer. I will try the properties_with_values method to see if it returns what I want. Best regards Matt Jones wrote in post #1061503: On Monday, 21 May 2012 01:02:43 UTC-5, Ruby-Forum.com User wrote: property :first_name, String Any idea/suggestion to solve this problem?

[Rails] CouchDB accessing composed column

2012-05-21 Thread Paulo Carvalho
Hello In my RoR application, I am using Couchrest_model to access a CouchDB database. I have a model which represents an scientific Article. I am going to simplify my model to explain it better. An article can have a title, a year and one or more authors. In the couchDB database, an article can

[Rails] Model definition using couchDB

2012-05-10 Thread Paulo Carvalho
Hello I am writing a RoR application which connects to a noSQL database (couchDB). In the database, I have an author document. The author has a first_name and a last_name. It also have inside another document: a book. The book has a title and a year of publication. Example: { author {

[Rails] form_for not rendering

2012-05-09 Thread Paulo Carvalho
Hello I am developing an application on rails using a couchDB database. I already can connect to the database and view some information. Now I am trying to create a new object of my model. My model is named author. My controller is named authors. The code of my model is the following one:

[Rails] Re: form_for not rendering

2012-05-09 Thread Paulo Carvalho
Thanks a lot for your help. This little = was missing and I was not able to see it. Best regards. Colin Law wrote in post #1060124: On 9 May 2012 11:08, Paulo Carvalho li...@ruby-forum.com wrote: [code] view_by :id, [quote] end % form_for @author do |f| % Try %= form_for