[Rails] Can't start server, why?

2012-03-01 Thread reynie...@gmail.com
Hi: I'm trying to run rails server and I get this error: [root@ruby-devserver config]# rails server /usr/local/rvm/gems/ruby-1.9.3-p125/gems/execjs-1.3.0/lib/execjs/runtimes.rb:50:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of availabl

Re: [Rails] OT: Why I can't see my email

2012-03-02 Thread reynie...@gmail.com
Yes you're right Google has the result and is the problem itself because for prevent something it send my messages directly to "All mail" :-( and there is not way to change it, anyway thanks Ing. Reynier Pérez Mira http://reynierpm.site90.com/ On Fri, Mar 2, 2012 at 7:29 AM, Michael Pavling wro

Re: [Rails] Can't start server, why?

2012-03-02 Thread reynie...@gmail.com
Ok and thanks now it works fine :) Ing. Reynier Perez Mira eMail: reynie...@gmail.com, reynie...@hotmail.com Skype: reynierpm Mobile: +58 424.180.5609 Site: http://reynierpm.site90.com On Fri, Mar 2, 2012 at 9:04 AM, Colin Law wrote: > On 2 March 2012 11:46, ReynierPM wrote: > >

[Rails] Starting my first application with Rails

2012-03-02 Thread reynie...@gmail.com
p. My question is: exists any rake or rails command to generate models if they exists in Rails? Ing. Reynier Perez Mira eMail: reynie...@gmail.com, reynie...@hotmail.com Skype: reynierpm Mobile: +58 424.180.5609 Site: http://reynierpm.site90.com -- You received this message because you are subscribed t

Re: [Rails] Starting my first application with Rails

2012-03-02 Thread reynie...@gmail.com
Thanks Javier and what about ID (PK) fields? Need to be specified too or Rails is smart enough to get them from tables? Ing. Reynier Perez Mira eMail: reynie...@gmail.com, reynie...@hotmail.com Skype: reynierpm Mobile: +58 424.180.5609 Site: http://reynierpm.site90.com On Fri, Mar 2, 2012 at 11

Re: [Rails] Starting my first application with Rails

2012-03-02 Thread reynie...@gmail.com
Also can my tables be named in singular or all needs to be plural? I'm reading conventions right now but have this doubt. For example if I have a table called record the correct name for the model could be Record << ActiveRecord::Base? Ing. Reynier Perez Mira eMail: reynie...@gmail.

Re: [Rails] Starting my first application with Rails

2012-03-02 Thread reynie...@gmail.com
table with 238 records :) @Walter: Understood but what about relations? How to deal with this from rails command line? I have relations BelongsTo (record belongs to country) and hasMany (record hasMany attachment and some others) Thanks to every Ing. Reynier Perez Mira eMail: reynie...@gm