You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi - I'm not a real Rails pro, so I may be doing something daft... apologies if so. I've got fat_free_crm running. I've added plugins for the Google integration and the Google Calendar integration - that seems to be working, AFAICS.
However, when I add this, I get a lot of problems... I forked fat_free_crm on github, did a "script/plugin install" for each of the awesome_nested_set and crm_cats. Because the current README for crm_cats says I must be using the v0.2 tag, after the "script/plugin install" I do:
cd vendor/plugins
rm -rf crm_cats
git clone https:...crm_cats.git
cd crm_cats
git checkout v0.2
cd ../../..
script/generate crm_cats_migration
And at that point, it fails because there is no generator for crm_cats_migrate
However, there is a rake task that I can do, which seems suitable:
rake db:migrate:plugin NAME=crm_cats
This creates the tables that I guess the script/generate was supposed to do - so that's probably some old documentation?
When I restart the app, I get a new admin tab for Categories. Clicking on it gives me a 500, and the log file says:
I can't see a route in config/routes for admin/cats. I can't see a file in app/controllers/admin as cats_controller.rb (wouldn't that be the right name?). I have no idea whether I'm using out of date docs, or whether I've misunderstood a step... or what. All I know is that so far it looks as though it ought to work, if only I could understand what the next tweak is.
Help, please!
The text was updated successfully, but these errors were encountered:
Hi - I'm not a real Rails pro, so I may be doing something daft... apologies if so. I've got fat_free_crm running. I've added plugins for the Google integration and the Google Calendar integration - that seems to be working, AFAICS.
However, when I add this, I get a lot of problems... I forked fat_free_crm on github, did a "script/plugin install" for each of the awesome_nested_set and crm_cats. Because the current README for crm_cats says I must be using the v0.2 tag, after the "script/plugin install" I do:
cd vendor/plugins
rm -rf crm_cats
git clone https:...crm_cats.git
cd crm_cats
git checkout v0.2
cd ../../..
script/generate crm_cats_migration
And at that point, it fails because there is no generator for crm_cats_migrate
However, there is a rake task that I can do, which seems suitable:
rake db:migrate:plugin NAME=crm_cats
This creates the tables that I guess the script/generate was supposed to do - so that's probably some old documentation?
When I restart the app, I get a new admin tab for Categories. Clicking on it gives me a 500, and the log file says:
Parameters: {"action"=>"index", "controller"=>"admin/cats"}
NameError (uninitialized constant Admin::CatsController::Cat):
vendor/plugins/crm_cats/app/controllers/admin/cats_controller.rb:154:in
get_cats' vendor/plugins/crm_cats/app/controllers/admin/cats_controller.rb:10:in
index'vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in
process' config/initializers/mongrel.rb:62:in
dispatch_cgi'I can't see a route in config/routes for admin/cats. I can't see a file in app/controllers/admin as cats_controller.rb (wouldn't that be the right name?). I have no idea whether I'm using out of date docs, or whether I've misunderstood a step... or what. All I know is that so far it looks as though it ought to work, if only I could understand what the next tweak is.
Help, please!
The text was updated successfully, but these errors were encountered: