#102 open
Ryan Mulligan

merb-gen gets stopped up when controller and model have the same name

Reported by Ryan Mulligan | April 10th, 2008 @ 03:59 PM | in 1.0 (Nearish Future)

Steps to reproduce

merb-gen model game #=>works

merb-gen controller game #=>works

merb-gen destroy controller game

/home/rmulliga/mb/my_application/app/models/game.rb:1: superclass mismatch for class Game (TypeError)

from /home/rmulliga/.gems/gems/merb-core-0.9.2/lib/merb-core/bootloader.rb:328:in `load'

from /home/rmulliga/.gems/gems/merb-core-0.9.2/lib/merb-core/bootloader.rb:328:in `load_file'

from /home/rmulliga/.gems/gems/merb-core-0.9.2/lib/merb-core/bootloader.rb:313:in `run'

from /home/rmulliga/.gems/gems/merb-core-0.9.2/lib/merb-core/bootloader.rb:310:in `each'

from /home/rmulliga/.gems/gems/merb-core-0.9.2/lib/merb-core/bootloader.rb:310:in `run'

from /home/rmulliga/.gems/gems/merb-core-0.9.2/lib/merb-core/bootloader.rb:308:in `each'

from /home/rmulliga/.gems/gems/merb-core-0.9.2/lib/merb-core/bootloader.rb:308:in `run'

from /home/rmulliga/.gems/gems/merb-core-0.9.2/lib/merb-core/bootloader.rb:67:in `run'

from /home/rmulliga/.gems/gems/merb-core-0.9.2/lib/merb-core/server.rb:42:in `start'

from /home/rmulliga/.gems/gems/merb-core-0.9.2/lib/merb-core.rb:29:in `start'

from /home/rmulliga/.gems/gems/merb-gen-0.9.2/bin/merb-gen:12

from /home/rmulliga/.gems/bin/merb-gen:19:in `load'

from /home/rmulliga/.gems/bin/merb-gen:19

current solution:

make files manually.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket