Closed hiimtaylorjones closed 9 years ago
Try to update compass-rails
gem to at least 2.0.2
gem 'compass-rails', '~> 2.0.2'
Cool. That took care of the Sass error. However, there's something else going on.
How does your sabisu_rails
initializer file looks like?...
SabisuRails.setup do |config|
# Base uri for posting the
config.base_api_uri = 'api.marketplace.dev'
# Ignored attributes for building the forms
# config.ignored_attributes = %w{ created_at updated_at id }
# HTTP methods
# config.http_methods = %w{ GET POST PUT DELETE PATCH }
# Headers to include on each request
config.api_headers = { "Accept" => "application/vnd.marketplace.v1" }
# Layout configuration
# config.layout = "sabisu"
# Resources on the api
config.resources = [:users]
# Application name
# mattr_accessor :app_name
# @@app_name = Rails.application.class.parent_name
# Authentication
# mattr_accessor :authentication_username
# @@authentication_username = "admin"
# mattr_accessor :authentication_password
# @@authentication_password = "sekret"
end
You need to have a default_resource set up, in this case the users, like:
# Default resource
config.default_resource = :users
I've tried that as well. Still no luck :(
Did you restart the server?
Yeah. The same issue still persists.
This is the configuration for a sample project https://github.com/kurenn/market_place_api/blob/chapter8/config/initializers/sabisu_rails.rb
Let me know how it goes
Yeah man, I've been using that same configuration going through the API book you wrote. Same errors persist.
Do you have the repo online?
I manage to make it work:
You just need to fetch the sabisu
gem from the github repo:
gem 'sabisu_rails', github: "IcaliaLabs/sabisu-rails"
Run the bundle command to install it and restart the pow server:
% bundle install; touch tmp/restart.txt
If you visit the explorer now, it should work!
Excellent! This fixes everything!
For documentation purposes, is there a need to specify those gem versions for users of Rails 4.2+?
Let me know if there is. I'd be happy to go in there and insert it.
We can probably publish a wiki page, or on the project README
I would say on the readme, can you place the PR?
Sure thing. I'll probably end up getting to it tomorrow evening.
Hey there,
Currently, I can't render the index view for Sabisu because of the following error:
Any idea what's going on here? Seems like maybe you called a depreciated class from Sprockets? I'm currently running with Rails 4.2.1.