Archive | August 2012

You are browsing the site archives by date.

Access Rails Helpers in Mailers view.

we can access Helper from Rails in mailers view by simply “add_template_helper(ApplicationHelper)” in a mailer in given way below class NotificationsMailer < ActionMailer::Base add_template_helper(ApplicationHelper) end Advertisements

Installing mysql2 gem on Windows using xampp

Earlier while installing gem i got the error that it not find the nysql libraries. then i resolved it and install the mysql gem by following command gem install mysql2 –version=0.2.7 — –with-mysql-lib=”c:\xampp\mysql\lib” –with-mysql-include=”c:\xampp\mysql\include”