Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Error during migration #16

Open
bstrackany opened this issue Nov 21, 2011 · 5 comments
Open

Fix: Error during migration #16

bstrackany opened this issue Nov 21, 2011 · 5 comments

Comments

@bstrackany
Copy link

Running rails g tiny_migration gave me this error

in `const_missing': uninitialized constant ActionDispatch::Routing::Routes (NameError)

which I solved by changing the first line in rails_tiny_mce/config/routes.rb

to

Rails.application.routes.draw do

@sandipransing
Copy link
Owner

Can you put pull request for same ?

@nhjort
Copy link

nhjort commented Jan 20, 2012

I'm confused, you mean replace:
ActionController::Routing::Routes.draw do
with
Rails.application.routes.draw do
That doesn't seem right, and didn't work for me

I've also tried numerous variations of what you suggested and can't get it to work. Can you copy and past the routes file that you're using, or at least be more specific on what was replaced. Even better, can the repository be updated to reflect the change?

Thanks for you help.

@bstrackany
Copy link
Author

I can look into that. I'm using rails 3.1 if that matters. Or if it already
works for you without having to make any change then I guess you can ignore
what I wrote...

On Thursday, January 19, 2012, nhjort <
[email protected]>
wrote:

I'm confused, you mean replace:
ActionController::Routing::Routes.draw do
with
Rails.application.routes.draw do
That doesn't seem right, and didn't work for me

I've also tried numerous variations of what you suggested and can't get
it to work. Can you copy and past the routes file that you're using, or at
least be more specific on what was replaced. Even better, can the
repository be updated to reflect the change?

Thanks for you help.


Reply to this email directly or view it on GitHub:

#16 (comment)

Ben Strackany
DevelopmentNow
800.387.0849

@nhjort
Copy link

nhjort commented Jan 20, 2012

Thanks for the quick reply. I'm using rails 3.1.1, but I can't get it to work. Where exactly does the change go?
Here's the file:
ActionController::Routing::Routes.draw do
resources :attachments do
collection do
get :manage
end
end
end

Thanks again in advance.

-- Update ...
bstrackany, your pull request changes worked for me. Same changes as I thought I put in before. Thanks for that!

@ksz2k
Copy link
Contributor

ksz2k commented Jan 20, 2012

Few days ago I've needed to work with R3.1 too, so here's my pull request: #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants