Forum: Ruby on Rails Duda con action mailer

Posted by Rolando Sotomayor (outsider)
on 2011-11-01 22:24
Hola,
soy nuevo en RoR y tengo un problema con action mailer
cuando uso el rubygem el gestor de paquetes y pongo:
gem list --local
 me sale:

actionmailer <1.2.5>

lo cual indica que lo tengo instalado, el proble a es el siguiente

he configurado el fichero environment.rb para poder trabajar con
actionmailer , he creado el formulario y casi todo lo que necesito
el punto critico llega cuando abro una consola para generar el
controlador correspondiente:

ruby/script generate ClassifiedMailer contact

lo cual no hace nada y la respuesta es esta:

Couldn´t find ´classifiedmailer´ generator

Ese es el problema...

sldos y gracias.
Posted by Frederick Cheung (Guest)
on 2011-11-01 22:54
(Received via mailing list)
On Nov 1, 9:24pm, Rolando Sotomayor <li...@ruby-forum.com> wrote:

> he configurado el fichero environment.rb para poder trabajar con
> actionmailer , he creado el formulario y casi todo lo que necesito
> el punto critico llega cuando abro una consola para generar el
> controlador correspondiente:
>
> ruby/script generate ClassifiedMailer contact
>
> lo cual no hace nada y la respuesta es esta:
>
> Couldnt find classifiedmailer generator

The first argument to generate is what you want to generate, i.e. ruby
script/generate mailer ClassifiedMailer ...
Also ruby 1.2.5 is really old, nearly 5 years old if my memory is
correct - I'd start with something newer (current version of rails is
3.1.1)

Fred
Posted by Rolando Sotomayor (outsider)
on 2011-11-02 16:35
Thank you very mucho..I will be update my rails´s system
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.