ComfortableMexicanSofa is a powerful CMS Engine for your Rails 4 applications.
Questions tagged [comfortable-mexican-sofa]
61 questions
10
votes
1 answer
How to use CanCan with gem controllers?
I've spent a while trying figure out the best way to authorize a controller that's from a gem with CanCan. I'm specifically using Comfortable Mexican Sofa. I have it all setup with Devise and CanCan but having trouble authorizing specific…

nick
- 610
- 5
- 12
4
votes
1 answer
How to pass parameters to partial in Comfortable Mexican Sofa?
How to pass parameters to partial in Comfortable Mexican Sofa. I have something like this:
module MySnippetHelper
def my_partial
# add something into array
end
end
Partial:
<% my_partial.each do |item| %>
# some text to display
<%…

Aleks
- 4,866
- 3
- 38
- 69
3
votes
1 answer
Creating navigation from pages with ComfortableMexicanSofa and Foundation
I'm building my first web application using Ruby on Rails (v4.1.5), ComfortableMexicanSofa (v1.12.2) for CMS features and admin interface and Foundation 5 for the front-end.
To set up Foundation for Rails, I followed this guide, which created the…

leifericf
- 2,324
- 3
- 26
- 37
3
votes
1 answer
Rails 4 custom 404 causes postgresql connection failure on Heroku
I have a Rails 4 app deployed on Heroku in production with a custom domain. I also have a staging version. The app uses Comfortable Mexican Sofa.
The following problem occurs: The app will reach a state where all requests return a 500 error. Logs…

laertiades
- 1,992
- 2
- 19
- 26
3
votes
1 answer
How to use fields in Comfortable Mexican Sofa?
I have seen in documentation that fields are not rendered in the view, and instead it can be used in helpers, partials etc. but I can't find a way how they are used.
The documentation says to use it like this:
{{ cms:field:some_label }}
But I am…

Aleks
- 4,866
- 3
- 38
- 69
3
votes
6 answers
Comfy CMS site not found
Suddenly I'm getting:
ActionController::RoutingError
Site Not Found.
and I can't figure out why. Any ideas?
I'm using Rails 4, Ruby 2 and Comfortable Mexican Sofa cms.

Tom Connolly
- 674
- 1
- 5
- 18
2
votes
1 answer
Rails3 CMS comfortable-mexican-sofa get mismatching routing with omniauth
I integrated comfortable-mexican-sofa CMS with my Rails 3.0.9 app with omniauth 0.2.6 in place.
Everything work fine blog side. I can log in cms-admin, working with the admin console, make a post and log off ( cms-admin has it's own authentication…

Luca G. Soave
- 12,271
- 12
- 58
- 109
2
votes
1 answer
How to cache Comfy ComfortableMexicanSofa pages to reduce page load time
I want to reduce my application load time, I am using Comfy ComfortableMexicanSofa cms with rails 4.2, I want to cache whole page so that when a user hit a URL from browser my application does not load cms page content from db just load that page…

Rubyst
- 21
- 2
2
votes
2 answers
Error when combining search scopes
I have a web-service that allows clients to search for articles with query parameters.It works fine if only one parameter is included but fails if I combine search_query and category. This is based on Comfortable_Mexican_Sofa where for_category is…

Antarr Byrd
- 24,863
- 33
- 100
- 188
2
votes
1 answer
Customizing comfortable_mexican_sofa database table names
In a Rails 4 project using comfortable_mexican_sofa gem for content management, how do you change the default database table names?
I'd like to remove the 'comfy_' prefix so they are just 'cms_blocks', 'cms_pages', etc...

wintondeshong
- 1,257
- 15
- 19
2
votes
3 answers
Upload comfortable mexican sofa cms image's to heroku from s3 bucket
I had successfully integrated comfortable mexican sofa CMS into an existing rails 4.1.2 application.
Now I want to upload images to heroku from s3 bucket.
Can anyone please tell the steps for that?

Harshith Prasad
- 115
- 10
2
votes
0 answers
Bundler resolving dependencies issue
Provided this simple Gemfile:
source 'http://rubygems.org'
gem 'rails', '~> 4.1.0'
gem 'comfortable_mexican_sofa', '~> 1.12.3'
It stupidly fails with this:
Bundler could not find compatible versions for gem "i18n":
In Gemfile:
…

Grocery
- 2,244
- 16
- 26
2
votes
1 answer
Comfortable Mexican Sofa in production: should I change a site's path?
I have successfully installed Comfy and now I have to create a new site. I can see the admin page, but when I try to reach the newly created site , I get error (in browser):
The page you were looking for doesn't exist.
You may have mistyped the…

R Milushev
- 4,295
- 3
- 27
- 35
2
votes
1 answer
How to use partials in Comfortable Mexican Sofa?
I want to make a navigation menu with the titles of published pages. In the user manual I can see the format which I should use in the layout:
{{ cms:partial:path/to/partial }}
So I create a partial with a name _navmenu.html.haml and place it in…

R Milushev
- 4,295
- 3
- 27
- 35
1
vote
1 answer
Setting up comfy cms fails with multi-tenancy app
I've got an app for which I'd like to use the comfy cms. I did the following:
added gem "comfortable_mexican_sofa", "~> 2.0.0"
bundle install
rails g comfy:cms
When I try to migrate I get the following error:
ArgumentError: wrong number of…

tiloman
- 75
- 7