I am currently encountering couple of issues with the a rails application deployed on Linode server. The gemfile looks like below :
source 'https://rubygems.org'
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'rails', '3.2.8'
gem 'mysql2'
gem 'activeadmin',:git => "git@github.com:sadanmasroor/active_admin.git"
gem 'jquery-rails'
gem 'roo'
group :production do
gem 'unicorn'
end
group :development do
gem 'thin'
gem 'capistrano'
end
Apparently there were list of issues with ActiveAdmin in the beginning mostly with activeadmin assets which I finally overcame by debugging the issues. Now the problem is that the assets precompile successfully in development and also in production ( Capistrano Assets Precompile Task) however I am getting a 500 error when accessing the index page even.
The weird part is that there is no error in production log. It just shows that the assets precompiled successfully. I have no idea what exactly is causing this issue. I have been trying to figure this thing out for almost three days now. Have tried literally everything I could to resolve it from the ActiveAdmin issues to stackoverflow and everything but no result. If I revert the code to the last stable one and than deploy everything works perfectly.
I would be very thankful to anybody who can point me to the right direction to fix this thing.
Thanks
After spending almost 2 days to fix the issue I used the old version of ActiveAdmin instead of the new latest release and everything worked like a charm.