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

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

Serving Software Downloads in 976 Categories, Downloaded 32.388.785 Times

Rails History Plugin 0.2

  Date Added: September 18, 2010  |  Visits: 976

Rails History Plugin

Report Broken Link
Printer Friendly Version


Product Homepage
Download (74 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
Programming  -  RailsTidy 0.1
RailsTidy project is a plugin for Ruby On Rails..
11.26 KB  
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  
Travel  -  GeoMeetings 1.3.0.0
Want to see driving directions for your meeting locations? Want to see driving direction for any of your last known location? If answer is yes, this app is made for you. An active cloud login available for you if you want to keep you...
11 MB  
Modules  -  Navhistory in metatags 1.0
You can put the navigation history in your metatags (title etc.), or anywhere else where itīs usefull for you.
 
Utilities  -  QuickStart 1.6
QuickStart allows you to quickly find items in your Start Menu, Favorites, Recent Files, Desktop and History, that match a typed keyword. In addition, you can specify a custom directory, as well as file extensions to look for. Just type in the...
731 KB  
Entertainment  -  Kisah Abu Nawas 1.0.0.0
This application is presented in Indonesian. Abu Nawas is the most entertaining character in Muslim history ever. With this application, we will present you about all of history in your Windows Phone. Enjoy It!!! Abu Nawas adalah...
1024 KB  
Entertainment  -  whowereyou 1.1.0.0
this is a fun based app by which you get to know who were you and how you got killed in your last birth.so it will help you to solve MYSTERY OF THE PAST. this is a updated version of the previous app and now all technical errors have been...
1024 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  
Medical  -  Cell Press Journal Reader 2.9
Stay up-to-date with developments in your field with the latest issues from 29 Cell Press journals on your iPad, iPhone, or iPod! An interactive reading experience lets you swipe and zoom through articles, save papers for reading offline,...
6.8 MB  
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 3.15.3
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