Shawn Lindsey

RefineryCMS + RVM + MYSQL + REE + OSX 10.6.6

My Current Workflow For Getting A New RefineryCMS Application Running Locally

For many of my web development projects where the client needs to be able to update their own website I build the site with Refinery CMS as a core component.

Refinery CMS...

Twitter integration into a rails 3.x application

Adding your twitter feed, or the twitter feed of anyone else for that matter can be done with less than 10 lines of code by including the "twitter" gem in your Rails application. This code will return the most recent tweet to the view.

Start with...

Rails (IE) Internet Explorer 6.0 Detection

It is well know that there are many issues with IE 6 displaying HTML properly.

To detect IE 6 in a Rails view use the following code:

<% if request.env['HTTP_USER_AGENT'] =~ /MSIE 6/ %>
Do what you need if IE6
<% else %>
Do this if "normal"...

ActiveRecord outside a Rails application

Active Record is the main tool that Rails developers use to communicate with and underlying database.  All Rails developers should be familiar with the Ruby programming language.  Active Record does some wonderful things for a web developer...

Shawn Lindsey

Categories

RSS Feed

Subscribe

Archives