msgbartop
Useful MOSS 2007 and Ruby and Rails stuff
msgbarbottom

02 Dec 08 Calendar Date Select

http://code.google.com/p/calendardateselect/

Tags:

28 Oct 08 Rails testing with shoulda

$sudo gem install thoughtbot-shoulda

make sure rubygems is updated or you will hit an error

http://www.thoughtbot.com/projects/shoulda

http://dev.thoughtbot.com/shoulda/

Cheat Sheet

http://kylebanker.com/blog/2008/09/shoulda-testing-cheat-sheet/

Tags: ,

23 Sep 08 Restful_authentication Internet explorer cannot logout http_basic problem

If you’re getting a security box popup like I did, here’s the link to the solution

http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/97981fedc00d98fa/3e435bd3e66952c7?lnk=raot

Basically, just edit /lib/authenticated_system.rb, and add ‘(:xml, :json)’

def access_denied
      respond_to do |format|
        format.html do
          store_location
          redirect_to new_session_path
        end
        format.any(:xml, :json) do
          request_http_basic_authentication ‘Web Password’
        end
      end
    end

 

Make sure your <head> tag has this too:

<META HTTP-EQUIV=”Pragma” CONTENT=”no-cache”> 
<META HTTP-EQUIV=”Expires” CONTENT=”-1″>

Tags:

21 Sep 08 Rails Pagination

From :

http://github.com/mislav/will_paginate/tree/master

Installation

script/plugin install git://github.com/mislav/will_paginate.git

Usage

@posts = Post.paginate :page => params[:page], :o rder => 'created_at DESC'

In the view, page links can be rendered with a single view helper:
<%= will_paginate @posts %>

Technorati Tags:

Tags: , ,

09 Jul 08 Active Scaffolding

I love active scaffolding!

 

Activescaffold website:
http://activescaffold.com/

Get Activescaffold:
http://github.com/activescaffold

 

Using File Column plugin:
http://www.42.mach7x.com/2007/10/17/file-column-plugin-with-activescaffold-upload-branch/

 

Active Scaffolding Tutorial

http://www-128.ibm.com/developerworks/linux/library/l-activescaffold/

 

Active scaffold for Rails 2.1

 http://github.com/robd/active_scaffold/commits/rails-2.1

 

Recordselect to search and select records

http://code.google.com/p/recordselect/wiki/Install

Tags: ,

08 Jul 08 Learn rails 2.0

http://railsonedge.blogspot.com/2008/02/rails-forum-tutorial-for-beginners-part.html

Tags:

This blog is multi language by p.osting.it's Babel