Authentication with Restful_Authentication in 3rdRail

There is a plethora of authentication mechanisms in the Rails world. One of the more popular one is Restful_Authentication. Just how do you set up Restful_Authentication for use in 3rdRail to provide some basic authentication mechanism?

http://railscasts.com/episodes/67 has some instructions on how you can set this up for use. However, while following the instructions on that site, please take note of the following points below.

I’ve attached my sample project for reference.   test_194.zip

 Things to note:

1. routes.rb needs to be changed as mentioned in the railscast site. However, additional entry may need to be added. The railscast side uses / as the root directory, I use /home

2. Create your own Home controller and index.rhtml

3. You may need to refactor your Session controller generated by the script to Sessions controller.

4. Changes have been made to the Users and Sessions sessions controllers as well as index.rhtml. I have thrown the user logged in status into session as well as the user name. These are used to determine whether the user is logged in and to greet the user in index.rhtml

5. I used interbase. If you use mysql, you may need a different database.yml and to create the tables yourself.

This should enable you to use restful_authentication to do simple authentication.

Posted by Wei Keong Ho on December 12th, 2007 under Uncategorized | Comment now »


CodeGear C++ Builder 2007 Singapore Launch

Experience the exciting new C++Builder and Delphi® for PHP
first-hand at our free CodeGear Seminar.

 

Attend and receive a
10% discount on select CodeGear products

 

Topics

C++Builder 2007
Delphi for PHP

Date & Venue

Singapore

Thursday 21 June

Raffles City Convention Centre
Enterprise Room
2 Stamford Road
Singapore 178882

Agenda

9.00am

Registration

9.30am

CodeGear Overview

10.00am

C++ Builder 2007 Overview

11.00am

Break

11.15am

C++ Builder 2007 Demos

11.30am

Delphi for PHP

12.30pm

Q&A

1.00pm

Close

Attend and receive a
10% discount on select CodeGear products

ECS

Join us in this exciting free Seminar where you will be introduced to soon to be released CodeGear C++Builder 2007 and the recently released Delphi for PHP.

Topics include:

C++Builder 2007

C++Builder 2007, the only native RAD C++ IDE, revolutionizes C++ development with integrated support for the cutting edge technology of Windows Vista™ including themed applications and seamless VCL support for Aero™, Vista Desktop™, and AJAX. Improved conformance and compatibility with ANSI C++, Dinkumware and Boost Library standards. New build flexibility supports MSBuild and custom build options. Radically boost your performance with up to 5x in-IDE build performance – as fast or faster than command line builds. Plus, save time by developing once on your choice of Windows® 2000, XP, or Vista and deploy to all with no additional coding.

Come and see Tim Jarvis and Ho Wei Keong demonstrate the best ever C/C++ development tool with the hottest technologies, such as TDD for C/C++, Web 2.0 programming for C/C++, Modeling for C/C++, etc.

In this session we will demonstrate the performance improvements in the C++ IDE and in your compiled code, also on display will be the power of the new Build events along with support for Vista(tm) themes and the VCL support for Glass frames.

C++ Builder 2007 is forged by CodeGear for the C/C++ community to help C/C++ developers to develop leading-edge C/C++ applications - You can’t miss this session!

Delphi for PHP

Delphi® for PHP revolutionizes web development with a completely integrated visual Rapid Application Development (RAD) approach and framework for PHP. Delphi for PHP provides a powerful editor, debugger, visual development tools, out of the box connectivity with MySQL and InterBase®, and an integrated VCL for PHP reusable component class library. Delphi for PHP is the fast and easy way to build powerful and reliable PHP web applications.

 

About CodeGear

CodeGear delivers innovative, high-productivity development tools for a wide spectrum of software developers ranging from individuals to enterprise teams. CodeGear products enable developers to freely develop on their platform of choice while focusing on simplifying complex technologies and tasks so they can concentrate on application design, not infrastructure, to enable ontime project delivery. To learn more about CodeGear and its products, visit www.codegear.com. CodeGear. Where Developers Matter.

About our speakers

Tim Jarvis
Team Leader for the APAC Product Evangelist Team,
CodeGear
As Team Leader for the APAC Product Evangelist Team, Tim Jarvis is responsible for the Region’s Product Evangelists.
With more than 20 years development experience across a range of languages, development platforms and business problem domains, Tim is one of the premier applications architects in the region. Tim also has deep technical expertise with CodeGear’s RAD range of products; Delphi for Win32, Delphi for Microsoft’s .NET platform, C# and C++ Builder, Tim is also one of CodeGear’s .NET technical specialists and has worked with the .NET platform since its earliest beta.
Tim has written a number of Whitepapers, written for and been quoted in numerous publications and is a regular speaker at technology events.

Ho Wei Keong
APAC Product Evangelist
CodeGear
Wei Keong is a member of the CodeGear Asia Pacific Product Evangelists Team. Wei Keong has rejoined CodeGear after 1 year consulting to BEA for ECS Computers. Wei Keong was previously part of the Borland APAC Technical Support team for over 2 years.
Since his early teens, Wei Keong developed a passion for programming and has programmed across a range of languages and development platforms. Wei Keong has technical expertise with CodeGear’s range of products and has written many articles.


Disclaimer:
Copyright © 2007 CodeGear. All rights reserved. You have received this information from CodeGear because you have made an inquiry or purchase from us and provided your email address. If you do not wish to receive further communications from CodeGear, please click on the unsubscribe button at the bottom of this page. CodeGear will not sell or share your email address with unrelated third parties: Privacy Policy. All CodeGear brand and product names are service marks, trademarks or registered trademarks of Borland Software Corporation in the United States and other countries. All other marks are the property of their respective owners. CodeGear - 100 Enterprise Way - Scotts Valley CA 95066-3249

Posted by Wei Keong Ho on June 17th, 2007 under Uncategorized | 3 Comments »


CodeGear C++ Builder 2007 Malaysia Launch

Experience the exciting new C++Builder and Delphi® for PHP
first-hand at our free CodeGear Seminar.

 

Attend and receive a
10% discount on select CodeGear products

 

Topics

C++Builder 2007
Delphi for PHP

Date & Venue

Kuala Lumpur

Tuesday 19 June

Boulevard Hotel Mid Valley
Westside Room 3
Mid Valley City
Lingkaran Syed Putra
59200 Kuala Lumpur

Agenda

9.00am

Registration

9.30am

CodeGear Overview

10.00am

C++ Builder 2007 Overview

11.00am

Break

11.15am

C++ Builder 2007 Demos

11.30am

Delphi for PHP

12.30pm

Q&A

1.00pm

Close

Attend and receive a
10% discount on select CodeGear products

PDS

Join us in this exciting free Seminar where you will be introduced to soon to be released CodeGear C++Builder 2007 and the recently released Delphi for PHP.

Topics include:

C++Builder 2007

C++Builder 2007, the only native RAD C++ IDE, revolutionizes C++ development with integrated support for the cutting edge technology of Windows Vista™ including themed applications and seamless VCL support for Aero™, Vista Desktop™, and AJAX. Improved conformance and compatibility with ANSI C++, Dinkumware and Boost Library standards. New build flexibility supports MSBuild and custom build options. Radically boost your performance with up to 5x in-IDE build performance – as fast or faster than command line builds. Plus, save time by developing once on your choice of Windows® 2000, XP, or Vista and deploy to all with no additional coding.

Come and see Tim Jarvis and Ho Wei Keong demonstrate the best ever C/C++ development tool with the hottest technologies, such as TDD for C/C++, Web 2.0 programming for C/C++, Modeling for C/C++, etc.

In this session we will demonstrate the performance improvements in the C++ IDE and in your compiled code, also on display will be the power of the new Build events along with support for Vista(tm) themes and the VCL support for Glass frames.

C++ Builder 2007 is forged by CodeGear for the C/C++ community to help C/C++ developers to develop leading-edge C/C++ applications - You can’t miss this session!

Delphi for PHP

Delphi® for PHP revolutionizes web development with a completely integrated visual Rapid Application Development (RAD) approach and framework for PHP. Delphi for PHP provides a powerful editor, debugger, visual development tools, out of the box connectivity with MySQL and InterBase®, and an integrated VCL for PHP reusable component class library. Delphi for PHP is the fast and easy way to build powerful and reliable PHP web applications.

 

About CodeGear

CodeGear delivers innovative, high-productivity development tools for a wide spectrum of software developers ranging from individuals to enterprise teams. CodeGear products enable developers to freely develop on their platform of choice while focusing on simplifying complex technologies and tasks so they can concentrate on application design, not infrastructure, to enable ontime project delivery. To learn more about CodeGear and its products, visit www.codegear.com. CodeGear. Where Developers Matter.

About our speakers

Tim Jarvis
Team Leader for the APAC Product Evangelist Team,
CodeGear
As Team Leader for the APAC Product Evangelist Team, Tim Jarvis is responsible for the Region’s Product Evangelists.
With more than 20 years development experience across a range of languages, development platforms and business problem domains, Tim is one of the premier applications architects in the region. Tim also has deep technical expertise with CodeGear’s RAD range of products; Delphi for Win32, Delphi for Microsoft’s .NET platform, C# and C++ Builder, Tim is also one of CodeGear’s .NET technical specialists and has worked with the .NET platform since its earliest beta.
Tim has written a number of Whitepapers, written for and been quoted in numerous publications and is a regular speaker at technology events.

Ho Wei Keong
APAC Product Evangelist
CodeGear
Wei Keong is a member of the CodeGear Asia Pacific Product Evangelists Team. Wei Keong has rejoined CodeGear after 1 year consulting to BEA for ECS Computers. Wei Keong was previously part of the Borland APAC Technical Support team for over 2 years.
Since his early teens, Wei Keong developed a passion for programming and has programmed across a range of languages and development platforms. Wei Keong has technical expertise with CodeGear’s range of products and has written many articles.


Disclaimer:
Copyright © 2007 CodeGear. All rights reserved. You have received this information from CodeGear because you have made an inquiry or purchase from us and provided your email address. If you do not wish to receive further communications from CodeGear, please click on the unsubscribe button at the bottom of this page. CodeGear will not sell or share your email address with unrelated third parties: Privacy Policy. All CodeGear brand and product names are service marks, trademarks or registered trademarks of Borland Software Corporation in the United States and other countries. All other marks are the property of their respective owners. CodeGear - 100 Enterprise Way - Scotts Valley CA 95066-3249

Posted by Wei Keong Ho on June 17th, 2007 under Uncategorized | 1 Comment »


Paradox to Interbase 2007

I have recently performed a POC for a customer regarding migration of their antiquated version of Paradox (from Delphi 5/6 days) to Interbase 2007. I was initially skeptical of whether the migration can be performed. After some effort in investigating and overcoming the difficulties involved, it was successfully migrated.

Below are some of the problems of very old versions of Paradox:

1. file based ISAM database and is susceptible to corruption

2. can only be shared through windows shared drives (hardly a elegant solution today)

3. only runs on windows

Interbase 2007 offers the following:

1. Journaling to provide real time disaster recovery

2. Network sharing instead of shared drives

3. Reliability and scalability

4. Zero administration and peace of mind

5. RDBMS capabilities

6. Windows, Linux, Solaris compatible

For everyone out there who are still using Delphi 6/7, BDE and Paradox, this offers a very good migration path. Below is what I would recommend in phases:

1. Delphi 6/7, BDE, Paradox

2. Delphi 6/7, BDE, Interbase 2007 (Minimal code changes)

3. Delphi 6/7, dbExpress, Interbase 2007 (Take advantage of faster performance of dbExpress)

4. Delphi 2007, dbExpress, Interbase 2007 (Vista-enable your applications and experience the new dbExpress 4 architecture)

If you are still using very old versions of Paradox and would like to move on to a trusted and tested RDBMS with a very small footprint, now is a good time. There is no guarantee that migration could still be performed easily five to ten years down the road. Save your valuable data from oblivion!

Posted by Wei Keong Ho on May 22nd, 2007 under Uncategorized | 4 Comments »


Hello from Bangalore

I’m currently conducting the CodeGear Product Launch for India with the venerable Tim Jarvis. It’s my first visit to India. During the days of the dot coms, it was like a pilgrimage to visit the Silicon Valley as a programming enthusiast. You can say the same of visiting India today. A lot of programming activity has shifted to India and it is now considered a hotbed for talented programmers. It’s cool to be able to meet some of them in this trip. The turnout for the Bangalore event is fantastic and the sessions are interactive and engaging. We’ll be moving on to Hyderabad and Chennai and hope to see the same enthusiasm from the crowd. :-)

Posted by Wei Keong Ho on February 27th, 2007 under Uncategorized | 3 Comments »


Eclipse on steroids!

I’ve been playing with JBuilder 2007 a lot since I came back. I’m amazed at the productivity that developers can gain by using the tool. For example, ProjectAssist saves hours and hours of installing and configuring Bugzilla, Subversion, XPlanner and Continuum. The EJB 3.0 designer is fantastic. You can be up and running EJB 3.0 applications in a much shorter time than if you code by hand.

JBuilder 2007 is also very handy if you use open source application servers like Geronimo, Glassfish and JBoss. AFAIK, JBuilder 2007 is up there on top in terms of usability with all these servers.

During these few years, I’ve been listening to talks about Eclipse killing all Java IDEs. This statement is absolutely baseless. Vanilla Eclipse lacks many of the great features found in leading Java IDEs. Bunching and distributing plugins from too many plugin vendors introduces maintenance and quality chaos to your development environment. Nevertheless, Eclipse is a great platform for Java IDE vendors to build upon. CodeGear has demonstrated this by marrying commercial value productivity features with open source ingenuity. JBuilder 2007 can really be described as Eclipse on steroids!

In a modern day where speed to market is essential for competitive advantage, using JBuilder 2007 ensures that your products reach market faster with less bugs and less rework. CodeGear has leveraged on the geniuses behind Eclipse platform to bring JBuilder to market faster and with more stability. Shouldn’t you do the same to your products with JBuilder 2007?

Posted by Wei Keong Ho on February 15th, 2007 under Uncategorized | 2 Comments »


I’m back!

I’m back to work in CodeGear after a self imposed 1 year hiatus. During this 1 year, I’ve performed work for BEA on Weblogic Portal. It has been great to hands-on with the latest in web portals. I’ve however always missed the days working in Borland. The hard core enthusiasm showed by some of my co-workers as well as the community has impressed me. With the formation of CodeGear, the focus is on the developer community again. This is exactly why I have decided to rejoin. Let the good old days of Turbo Pascal roll again!

Posted by Wei Keong Ho on January 15th, 2007 under Uncategorized | 6 Comments »



Server Response from: dnrh1.codegear.com

 
 

Copyright © Wei Keong Ho  Powered by WordPress and Delphi For PHP