Forum: Ruby on Rails Generators not working under Rails 2.1.2?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A2fedc2aa6918feba4d4323768a4a076?d=identicon&s=25 Jason Crystal (cclear44)
on 2008-10-23 23:40
Hello,

On all of my Rails 2.1.2 projects (released today), whenever I try to
generate anything, I get the result "undefined method `empty?' for
/_generator$/:Regexp".

Example:

mbp15:~> rails -v
Rails 2.1.2
mbp15:~> rails ./example
      create
      ...
      ...

mbp15:~> cd example
mbp15:~/example> ./script/generate model my_model name:string
undefined method `empty?' for /_generator$/:Regexp
mbp15:~/example> ./script/generate migration my_first_migration
undefined method `empty?' for /_generator$/:Regexp
mbp15:~/example>


Any thoughts?  Anyone else experiencing this?

Thanks,
-Jason
A2fedc2aa6918feba4d4323768a4a076?d=identicon&s=25 Jason Crystal (cclear44)
on 2008-10-24 00:20
Installed the latest version of Ruby Enterprise Edition (though normal
Ruby would probably work too) and everything is fine now.

I think I had a patched version leftover from a security issue that
arose earlier this summer, and the latest version of Rails didn't like
it so much.

Cheers,
-Jason
A05834e9b5954947eb0ba3b570c47d5e?d=identicon&s=25 Pratik Naik (pratik)
on 2008-10-24 01:31
(Received via mailing list)
Update the rubygems :

gem update --system

On Fri, Oct 24, 2008 at 3:10 AM, Jason Crystal
<rails-mailing-list@andreas-s.net> wrote:
> Rails 2.1.2
> mbp15:~/example>
>
--
Cheers!
- Pratik
http://m.onkey.org
1eaf88725aac486f742ae64a8abe0f6c?d=identicon&s=25 Pilaf (Guest)
on 2008-10-24 02:05
(Received via mailing list)
I'm having the same problem. I'm on a Gentoo box with Ruby 1.8.6 and
all the latest patches. Pratik's suggestion did nothing (actually my
rubygems was already up-to-date).

I'm downgrading to 2.1.1 if no quick solution comes up soon.
1eaf88725aac486f742ae64a8abe0f6c?d=identicon&s=25 Pilaf (Guest)
on 2008-10-24 02:09
(Received via mailing list)
BTW, Google already indexed this:

http://rails.lighthouseapp.com/projects/8994/ticke...

Thought I might post it here in case someone finds a solution and
posts it over there.
A05834e9b5954947eb0ba3b570c47d5e?d=identicon&s=25 Pratik Naik (pratik)
on 2008-10-25 12:55
(Received via mailing list)
My bad. I didn't provide the complete update instructions :

[lifo@null ~]$ sudo gem update --system
[lifo@null ~]$ sudo update_rubygems


On Fri, Oct 24, 2008 at 5:34 AM, Pilaf <pfayolle@gmail.com> wrote:
>> all the latest patches. Pratik's suggestion did nothing (actually my
>>> On Fri, Oct 24, 2008 at 3:10 AM, Jason Crystal
>>>> mbp15:~> rails -v
>>>> undefined method `empty?' for /_generator$/:Regexp
>>>> >
>>>
>>
>
> >
>



--
Cheers!
- Pratik
http://m.onkey.org
A05834e9b5954947eb0ba3b570c47d5e?d=identicon&s=25 Pratik Naik (pratik)
on 2008-10-25 14:46
(Received via mailing list)
http://afreshcup.com/2008/10/25/rails-212-and-22rc...

On Sat, Oct 25, 2008 at 4:23 PM, Pratik <pratiknaik@gmail.com> wrote:
>> http://rails.lighthouseapp.com/projects/8994/ticke...
>>>
>>>>>
>>>>>      ...
>>>>> Any thoughts?  Anyone else experiencing this?
>>>>
>>
>
>
>
> --
> Cheers!
> - Pratik
> http://m.onkey.org
>



--
Cheers!
- Pratik
http://m.onkey.org
This topic is locked and can not be replied to.