Displaying 20 results from an estimated 43 matches for "rails_generator".
2006 Mar 23
1
Need installation Help
...8.3 to 8.11.
I then typed gem install rails --remote, and it worked.
I now try rails -v at the command prompt and it says bad command or file
name.
I changed all the new files in ruby/bin to .bat as well, and when I type
rails -v, I get...
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/bin/../lib/rails_generator/lookup.rb:33:in
`expand_path'': couldn''t find HOME environment -- expanding `~''
(ArgumentError)
from
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/bin/../lib/rails_generator/lookup.rb:33:in
`user_home''
from
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/bin/.....
2005 Mar 05
3
login generator problem
I am trying to use the login generator, but I keep
getting the following error when I run "generate login
Account":
/usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/rails_generator/base.rb:84:in
`manifest'': No manifest for ''login'' generator.
(NotImplementedError)
from (eval):3:in `__send__''
from (eval):3:in `manifest''
from
/usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/rails_generator/commands.rb:41:in
`invoke!''
from
/usr/...
2006 Apr 11
0
Problem using generate/scaffold and FireRuby
...-1.3.1/lib/active_support/
> depend
> encies.rb:123:in `const_missing''
>
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
> depend encies.rb:131:in `const_missing_before_generators''
>
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/rails_generator/lookup.rb:13:
> in `const_missing''
>
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
> depend encies.rb:133:in `const_missing_before_generators''
>
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/rails_generator/lookup.rb:13:
> in...
2012 Jun 06
1
why to get the error 'undefined method `write_inheritable_attribute''
I started getting this error message when I attempt to do some rake
tasks:
$ rails destroy scaffold genotypes
/usr/share/rails-ruby1.8/railties/lib/rails_generator/options.rb:32:in
`default_options'': undefined method `write_inheritable_attribute'' for
Rails::Generator::Base:Class (NoMethodError)
from
/usr/share/rails-ruby1.8/railties/lib/rails_generator/base.rb:90:in
`<class:Base>''
from
/usr/share/rails-ruby1.8/railties/lib...
2006 Apr 03
18
newbie generate scaffold
Hi Guys
First time on the list and pretty new to the rails way of doing
things, yup I know sorry.. another newbie!
anyway, apologies out of the way, this is the problem I am having...
I have purchased the "Agile Development with Rails" book and have
just started running through the ''Depot'' demo application.
I have got to page 57...
I have my project files all
2006 Apr 13
2
running rails on Linux
...the rails directory I see:
/local/pkgs/ruby-1.8.4/lib/ruby/gems/1.8/gems/rails-1.1.2/bin/rails
which I presume is what is executed when I''m supposed to type:
% rails /path-to-my-app
But this rails file is not executable! Or when I type
% ruby rails /path-to-my-app
I get errors:
./../lib/rails_generator/options.rb:33:in `default_options'': undefined
method `write_inheritable_attribute'' for Rails::Generator::Base:Class
(NoMethodError)
from ./../lib/rails_generator/base.rb:51
from
/local/pkgs/ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`req...
2012 Jul 27
7
Getting error while starting server plz help
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/options.rb:32:in
`default_options'': undefi
ned method `write_inheritable_attribute'' for
Rails::Generator::Base:Class (NoMethodError)
from
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/base.rb:90:in
`<class:Base>''
from
c:/Ruby19...
2008 Oct 24
2
Rails problem
...2.2.0...
Installing RDoc documentation for activerecord-2.2.0...
Installing RDoc documentation for actionpack-2.2.0...
Installing RDoc documentation for actionmailer-2.2.0...
Installing RDoc documentation for activeresource-2.2.0...
# rails
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.0/bin/../lib/rails_generator/options.rb:32:in
`default_options'': undefined method `write_inheritable_attribute'' for
Rails::Generator::Base:Class (NoMethodError)
from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.0/bin/../lib/rails_generator/base.rb:90
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_r...
2006 Apr 04
6
connecting to mysql on OS X 10.4
i have looked in the archives, i have the _agile_ book, and its links
right in front of me, and i have done pretty much everything i can
think to do except start from a fresh OS install, and yet i still can
not get Rails to talk to MySQL.
when i try to do this:
237:/Library/WebServer/Documents/Rails/depot chris$ ruby script/
generate scaffold Product Admin
i get this output:
2011 Jul 04
2
ruby and rails wont work even they're already installed
...utex (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require''
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require''
from /usr/lib/ruby/1.8/active_support.rb:56
from /usr/share/rails-ruby1.8/railties/bin/../lib/rails_generator.rb:
28:in `require''
from /usr/share/rails-ruby1.8/railties/bin/../lib/rails_generator.rb:
28
from /usr/share/rails-ruby1.8/railties/bin/rails:14:in `require''
from /usr/share/rails-ruby1.8/railties/bin/rails:14
I always get these messages. Why is this. Pls help me.
--
You rec...
2006 Jun 28
5
rails destroys rdoc...again
for many versions of ruby, and as many versions of rails, ive been unable to generate docs without deleting this file:
lib/rails_generator/generators/components/controller/templates/controller.rb
ruby just chews more and more memory until swap fils up and the system has to be reset..
m gems # rdoc --version
RDoc V1.0.1 - 20041108
ruby --version
ruby 1.8.5 (2006-06-22) [x86_64-linux]
2007 May 22
5
rails edge
...e"
with "resource" in file rspec_resource_generator.rb ? Somethings
still missing.
before i get "Couldn''t find ''scaffold_resource'' generator"
after the edit i get
"No such file or directory - [myprojectpath]/vendor/rails/railties/
lib/rails_generator/generators/components/resource/templates/
view_index.rhtml
2006 Jan 05
7
repost - Can one edit the file that generates the scaffolding.css?
I am reposting this because not only am I VERY interested in the
answer but because I think it would also be useful to many, many people.
We kind of have a house-style here, so it would be nice if the
generated scaffold.css would accommodate that. My questions are?
Is it possible?
Is it safe?
How?
bruce
2009 May 10
3
Ruby 1.9 problem
...t;top (required)>''
from
/var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/active_support.rb:55:in
`require''
from
/var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/active_support.rb:55:in
`<top (required)>''
from
/usr/lib/ruby1.9/gems/1.9.0/gems/rails-2.3.2/lib/rails_generator.rb:28:in
`require''
from
/usr/lib/ruby1.9/gems/1.9.0/gems/rails-2.3.2/lib/rails_generator.rb:28:in
`<top (required)>''
from /usr/lib/ruby1.9/gems/1.9.0/gems/rails-2.3.2/bin/rails:14:in
`require''
from /usr/lib/ruby1.9/gems/1.9.0/gems/rails-2.3.2/bin/rails:14:in
`...
2005 Jun 01
0
problem with rails rails-0.12.1 with Ruby 1.8 on OS X Panther
...ethod `write_inheritable_attribute'' for
Rails::Generator::Base:Class (NoMethodError)
Am I missing something?
regards,
Arnaud
PS: detail of the error message I get.
$ ruby /usr/local/lib/ruby/gems/1.8/gems/rails-0.12.1/bin/rails
/usr/local/lib/ruby/gems/1.8/gems/rails-0.12.1/bin/../lib/rails_generator/options.rb:33:in
`default_options'': undefined method `write_inheritable_attribute'' for
Rails::Generator::Base:Class (NoMethodError)
from /usr/local/lib/ruby/gems/1.8/gems/rails-0.12.1/bin/../lib/rails_generator/base.rb:51
from /usr/local/lib/ruby/site_ruby/1.8/ruby...
2006 Mar 05
1
rdoc on edge rail fails at generator template
Infinite loop at a generator template :-
controller.rb: c
railties/lib/rails_generator/generators/components/controller/templates/controll
er.rb:3:15: Expected class name or ''<<''. Got RubyToken::TkLT: "<"
And BTW why are templates named .rb ?
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Mar 17
1
edge - scaffolds now pluralized?
Are my eyes going buggy, or did something recently change in Edge
Rails so that now scaffolds are generated with pluralized controller/
helper/etc names? I peeked at the code in
railties/lib/rails_generator/generators/components/scaffold/
scaffold_generator.rb
around line 50, and it looks like there was a change there recently
so that it now defaults to pluralized names. So why was this
changed? I can''t find any notes of the change in trac or the
changelog. And how can I get the sin...
2006 Jan 31
2
Problem generating CHM Rails doc
Hi,
I have problem generating chm file for the rails doc.
I''ve commaned the rdoc to generate the chm by:
rdoc -f chm -o chm_folder action* rails-*
It gave me the following error:
vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb:3:15:
Expected class name or ''<<''. G
ot RubyToken::TkLT: "<"
By adding *.document* error has gone and I''ve reached the *Generating
CHM...*, but another error raised:
c:/ruby/lib/ruby/1.8/rdoc/gen...
2006 Jul 18
2
Write a new generator
Hi,
Could anyone point me to how to write a generator in Ruby?
I was going through code in ruby files at
\rails-1.1.2\lib\rails_generatorand found that it reads gems
specification to look for generator s present
on the system.
The way there are tutorials on how to create plugins for Rails, are there
any for Generators?
At the end of it I should be able to do something like this
ruby script/generate <my_generator> arguments...
2006 Sep 22
2
Editing the migration template
Hi. I''d like to edit the generated template in AR where tables are
created.
for example, this file is created when generating a new model or
migration:
class CreateModel < ActiveRecord::Migration
def self.up
create_table :models do |t|
# t.column :type,
I''d like to edit the above so it''ll generate this:
class CreateModel <