Shared models between two Rails apps – what is the ideal solution for Workflow?

drop the models project(put models into one of other parts, i’d suggest whatever you consider “more important”), put all projects into single repository(separate project folders) and make symlinks to models/libs/apis/whatever your code is highly coupled together and you often need to make changes to few projects at once(like updating models and updating APIs that use … Read more

What is the best way to drop a table & remove a model in Rails 3?

The second method is the ideal way to handle this: your migration files are meant to represent how your database has changed over time. The older migration files will remain in your project (in case, hypothetically, you wanted to roll back to an older version), but Rails will not run them when you rake db:migrate … Read more

LoadError Unable to autoload constant Message

By convention in rails (and this is enforced by autoloader), file paths should match namespaces. So, if you have a Mailboxer::Message model, it should be in app/models/mailboxer/message.rb. Additionally, you probably have autoloader kicking in when trying to load a Message class (my guess is that it happens from within ActAsMessageable). It looks for a message.rb … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)