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 30.075.567 Times

Rails History Plugin 0.2

  Date Added: September 18, 2010  |  Visits: 953

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
RAILS HISTORY PLUGIN RELATED
Programming  -  RailsTidy 0.1
RailsTidy project is a plugin for Ruby On Rails..
11.26 KB  
Book Collection Managers  -  Clear Document History in Windows 7 1.0
If you want to delete all of the Windows record of the files like web pages, video clips, songs, pictures etc. then Clear Document History in Windows 7 is the best software for you. Clear Document History in Windows 7 is the safe and secure...
2.5 MB  
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  
Utilities  -  Help Me - SOS International 1.0.4
Help me SOS International, is a free app designed to place emergency calls (Police, Ambulance or Fire Department) in your current country location. With this application you can also get the address or GPS coordinates of your location by...
6.7 MB  
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  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.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...
2.73 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