This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Jay's additions to Active Admin: | |
| $(document).ready(function() { | |
| function changeSubcategories(selection) { | |
| // entrance_page = $("#title_bar a:eq(2)").text(); | |
| data = { 'data': selection } //, 'entrance_page': ent } | |
| $.post("/get_subcategories", data); | |
| } | |
| //changeSubcategories(); | |
| $("#entrance_page_source_category_id").change(function() { | |
| changeSubcategories($("#entrance_page_source_category_id option:selected").text()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ rails g active_admin:install | |
| invoke devise | |
| generate devise:install | |
| create config/initializers/devise.rb | |
| create config/locales/devise.en.yml | |
| =============================================================================== | |
| Some setup you must do manually if you haven't yet: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ApplicationController < ActionController::Base | |
| before_filter :collect_http_referrer | |
| def collect_http_referrer | |
| session[:http_referrer] ||= request.env["HTTP_REFERER"] | |
| end | |
| end |
NewerOlder