If you face an error like this;

/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:269:in `require_frameworks’: no such file to load — openssl (RuntimeError) from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:134:in `process’

Follow these steps:

1. yum install openssl
2. yum install openssl-devel
3. cd /ruby_install_dir/ext/openssl
4. ruby extconf.rb
5. make
6. make install

Use the “return” statement to fix this issue.

(E.g)

def do_something
redirect_to(:action => “elsewhere”) and return if monkeys.nil?
render :action => “overthere” # won’t be called if monkeys is nil
end

(copied from http://api.rubyonrails.org/classes/ActionController/Base.html)

If you see this errror;

ERROR RUNNING ‘cluster::configure’: Plugin /cluster::configure does not exist in category /commands

Make sure you have; “mongrel_cluster” gem installed.

You can see whether it exists in the list by issuing the command;

gem list –local

If you don’t see it, run;

gem install mongrel_cluster

That should fix your issue.

This is helpful to have the single login for multiple level domains.

Edit your environment configuration and add something like this;

(E.g in environment.rb or production.rb)

config.action_controller.session = {:domain => “.arthurneil.com”, :key => ‘_arthurs_session_id’, :secret => ‘4gfsdf234jmfv35ksdf23m44m4m4neserf345′}

Likewise, to target the cookies based on particular domain, try;

(E.g)

cookies[:my_test_cookie] = {:value => “test”, :expires => 365.days.from_now,:domain => ‘.arthurneil.com’}

Page 4 of 42« First...«23456»...Last »

Categories and Tags

Advertising