crestcode.com
Uncategorized | CrestCode
http://crestcode.com/category/uncategorized
Deploying ElasticSearch on Heroku with Rails 4. September 25, 2014. I recently deployed a Rails 4 app with ElasticSearch to Heroku and ran into a couple of snags along the way. I’m hoping this tutorial will be useful for others running into the same issues. Leave a comment if you have any problems or have figured out a better way! Step 1 – Install Elastic Search. If you’re on a Mac with Homebrew installed, simply type:. You can then confirm a proper install by navigating to http:/ localhost:9200. Step 4 ...
crestcode.com
SSL Error (failed certificate) with Ruby, Rails and OSX | CrestCode
http://crestcode.com/ssl-error-failed-certificate-with-ruby-rails-and-osx
SSL Error (failed certificate) with Ruby, Rails and OSX. August 12, 2014. Outdated SSL certificate files could be the reason you’re getting the Ruby error:. OpenSSL: SSL: SSLError: SSL connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. If you have RVM installed, you could try this to update your SSL certificates:. Rvm osx-ssl-certs status all. Rvm osx-ssl-certs update all. This didn’t work in my case, however. How to check if a table is empty in Rails. SSL Error ...
crestcode.com
How to check if a table is empty in Rails | CrestCode
http://crestcode.com/how-to-check-if-a-table-is-empty-in-rails
How to check if a table is empty in Rails. August 1, 2014. You may already know that if you want to check for the existence of an Active Record object you can use a method called. Let’s say you have a. Model and would like to know if a record exists with a matching primary id:. 1) # returns true if a user with matching id of 1 exists and false otherwise. User.exists? Name = 'John') # also works with find-style conditionals. It’s also possible to use. Additionally, you can use. September 4, 2014 at 5:21 pm.
crestcode.com
September | 2014 | CrestCode
http://crestcode.com/2014/09
Monthly Archives: September 2014. Deploying ElasticSearch on Heroku with Rails 4. September 25, 2014. I recently deployed a Rails 4 app with ElasticSearch to Heroku and ran into a couple of snags along the way. I’m hoping this tutorial will be useful for others running into the same issues. Leave a comment if you have any problems or have figured out a better way! Step 1 – Install Elastic Search. If you’re on a Mac with Homebrew installed, simply type:. Rails new elasticsearch blog. Add these lines to the.
crestcode.com
Active Record enums in Ruby on Rails 4.1 | CrestCode
http://crestcode.com/active-record-enums-in-ruby-on-rails-4-1
Active Record enums in Ruby on Rails 4.1. September 2, 2014. I was recently working on a Rails app that required role-based authorization for its users. Basically, the application would need the ability to check to see if the user had the proper credentials to access certain features of the site. I’ve typically handled this in the past by either adding an. Boolean column in the. Table so I could simply call. Model and another model called. This many-to-many association also requires a join table called.
crestcode.com
jkasiewicz | CrestCode
http://crestcode.com/author/jkasiewicz
All posts by jkasiewicz. Deploying ElasticSearch on Heroku with Rails 4. September 25, 2014. I recently deployed a Rails 4 app with ElasticSearch to Heroku and ran into a couple of snags along the way. I’m hoping this tutorial will be useful for others running into the same issues. Leave a comment if you have any problems or have figured out a better way! Step 1 – Install Elastic Search. If you’re on a Mac with Homebrew installed, simply type:. Rails new elasticsearch blog. Add these lines to the. Step 4...
crestcode.com
August | 2014 | CrestCode
http://crestcode.com/2014/08
Monthly Archives: August 2014. SSL Error (failed certificate) with Ruby, Rails and OSX. August 12, 2014. Outdated SSL certificate files could be the reason you’re getting the Ruby error:. OpenSSL: SSL: SSLError: SSL connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. If you have RVM installed, you could try this to update your SSL certificates:. Rvm osx-ssl-certs status all. Rvm osx-ssl-certs update all. This didn’t work in my case, however. August 1, 2014. Withou...
crestcode.com
CSS namespacing for Rails controllers and actions | CrestCode
http://crestcode.com/css-namespacing-for-rails-controllers-and-actions
CSS namespacing for Rails controllers and actions. September 8, 2014. Do you ever find yourself fighting with CSS conflicts in the asset pipeline? Heres’s a handy namespacing trick mentioned by Brian Morearty in his Rails 4.1 Performance Fundamentals. Course. You can easily apply style rules to all pages of one controller, or specifically target a single action in a controller, by adding the current controller and action as class names to the body tag in your. You can also add a. Class around the yield in.
SOCIAL ENGAGEMENT