Compare projects
Project comparisons allow you to view any selection of projects side by side just like they're shown on regular categories or in search results. You can try out an example or start yourself by adding a library to the comparison via the input below. You can also easily share your current comparison with others by sending the URL of the current page.
0.0
Remember the route prior to the current controller and redirect/use later
In rails project, one common case is one form used to create or update
an object can be routed from more than one page, when the object is created or updated, it
should be redirected back to wherever it came from. Rails redirect_back doesn't work in this
case because: 1. redirect_back in create/update action will go back to new/edit form. 2.
usually the form is re-rendered if any error exists, which basically breaks the redirect_back.
rails-source-path can hanlde this by explicily specifying the entry actions and remember the
previous route in session store, hence can be used in the whole controller. Also a helper
method is providered so it can be used in view like 'back' or 'cancel' button.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024