Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.323.097 Times

Rails History Plugin 0.2

  Date Added: September 18, 2010  |  Visits: 1.281

Rails History Plugin

Report Broken Link
Printer Friendly Version


Product Homepage
Download (105 downloads)



Rails History Plugin is a Ruby on Rails plugin that stores user actions (i.e. URLs that the user has recently visited). It avoids storage of POST and AJAX requests, and it provides a manual way to specify which actions not to store. Installation: Unpack into the vendor/plugin and that should be it. Usage: In your app/controllers/application_controller.rb, add a history line like this: class ApplicationController < ActionController::Base history :default => "http://default.url.com/", :max => 10 end The history function accepts a hash of options :default, the default URL to redirect :max, the maximum locations to remember (five by defaults). None of the parameters are required. If somebody knows of a better way to obtain the default URL, he is welcomed to tell me how. You can use the method history_skip in your controller if you want to avoid certain location to be stored in the history. By default, action resulting from a POST, PUT, DELETE request or an Ajax request are not stored in the history. class FooController < ApplicationController history_skip :action_to_skip def action_to_skip # I will not be stored in the history end end In your actions, you can then use the following methods: last_location: returns the last visited location, can be used with one numeric argument precising how many locations to go back in the history (1 by default), peek_last_location: like last_location but dont remove it from the history, redirect_back: redirect the user to the last location in history, it takes the same arguments as last_location, store_location(force = false): stores the current location in the history, set force parameter to true to store location even if it would be skipped. Note that if you want to use the plugin to create a "back" link on a page, you must go back two times. For example, using this controller class HistoryController < ApplicationController def foo end def bar end def back redirect_back(2) end end Ill try to explain clearly why. Lets say that in your bar view, you create a back link wich links to the back action. Now a user visits foo then bar. What you want is your user being redirected to foo when clicking your "back" link. Now your user hits the link. The controller will call the back action. From its point of view, you are in the back action so going back one time would take you to the bar action. Whats New in This Release: - This release fixes a bug where a user variable was stored in a class variable instead of a session one, so a user going back would make another one skip a page in its history. - The plugin no longer stores PUT and DELETE requests. - A peek_last_location method was added to look at the history without modifying it, and a "force" parameter was added to the store_location method to force storing of a location even if it would normally be skipped..

Requirements: No special requirements
Platforms: Linux
Keyword: Applicationcontroller History In Your Last Libraries Location Plugin Programming Rails Rails History Plugin Ruby On Rails Urls User
Users rating: 0/10

License: Freeware Size: 11.26 KB
USER REVIEWS
More Reviews or Write Review


RAILS HISTORY PLUGIN RELATED
Form Processors  -  Menus in your windows app 1.1
Menus in your windows app shows how to implement menus in your Win32 application.
20.48 KB  
Networking  -  ms HTML special Chars in your comments 0.2.2
With msHTMLspecialChars can you see all HTML special chars in your comments. And you see the complete comments in your dashbord. When you actived this plugin can you disabled the default comments widget in your dashbord.Installation : 1. Download...
10 KB  
Modules  -  Right Now Reloaded 1.0
As WordPress has grown, the default Right Now widget you see in your dashboard has gotten less and less relevant, showing information only on posts, pages, categories, tags, and comments. If you don't use WordPress strictly for blogging, or you...
215.04 KB  
Desktop Utilities  -  MoonDock 1.2.3 1. 2. 2003
About MoonDock A lightweight application designed for displaying up-to-date images of the Moon phase in your system MacOS X Dock or as a floating Moon image on your desktop. MoonDock also enables you to examine phase information for specific dates...
1.9 MB  
Puzzles  -  Wrapper Stacker 2 1.0
Wrapper Stacker 2 is a Puzzle game for free. You can play Wrapper Stacker 2 in your browser for free. Click inside the pipes to drop presents on the platforms below. Stack all of the gifts as fast as you can to score the most possible points.
1.5 MB  
Libraries  -  Template::Plugin::ASCIITable 0.1
Template::Plugin::ASCIITable is a Perl module that allows you to use Text::ASCIITable in your templates. SYNOPSIS [% USE ASCIITable %] blah [% ASCIITable.cols(a, b, c); ASCIITable.rows([1,2,3],[one,two,three]); ASCIITable.draw() %] A...
7.17 KB  
Modules  -  Inagist Twitter Plugin 1.0
This plugin displays latest popular tweets from Twitter related to the tags in your post. You could associate the plugin with your authenticated account on inagist.com in which case it will diplay trending tweets from your account. Install : 1....
10 KB  
Modules  -  WP-Cirrus 0.6.5
WP-Cirrus is a plugin that displays a 3D tag cloud in your WordPress. It can be used as a widget or anywhere on your blog using the [wp-cirrus] code.WP-Cirrus was inspired by the famous WP-Cumulus plugin. WP-Cirrus uses no Flash, but only...
849.92 KB  
Multimedia  -  In-your-face message greeting for Graphics and Animations 1.1
This script allows you to give your surfers a unique and warm welcome when they enter your site.The idea behind this script is actually quite simple- By using dynamic content and fontsize manipulation, was created a text that appears to "zoom-in"...
102.4 KB  
Libraries  -  SQL::Preproc 0.10
SQL::Preproc is a Perl module to embed SQL in your Perl (ala SQL preprocessors). SYNOPSIS use SQL::Preproc subclass => Chart, emit => 1, keepsql => 1, syntax => [ Teradata ], pponly => 1, relax => 1, alias => 1, debug => 1; use DBI;...
52.22 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB