Rails flash messages with AJAX requests & twitter-bootstrap 2.3
Forked from https://gist.github.com/linjunpop/3410235 Based on Stackoverflow answer: http://stackoverflow.com/a/10167659/656428
License: MIT
| #!/bin/bash | |
| ############################################################################## | |
| # An rclone backup script by Jared Males (jaredmales@gmail.com) | |
| # | |
| # Copyright (C) 2018 Jared Males <jaredmales@gmail.com> | |
| # | |
| # This script is licensed under the terms of the MIT license. | |
| # https://opensource.org/licenses/MIT | |
| # |
Rails flash messages with AJAX requests & twitter-bootstrap 2.3
Forked from https://gist.github.com/linjunpop/3410235 Based on Stackoverflow answer: http://stackoverflow.com/a/10167659/656428
License: MIT
| class PagesController < ApplicationController | |
| before_filter :login_required, :except => [ :show ] | |
| # GET /pages | |
| # GET /pages.xml | |
| def index | |
| @pages = Page.find(:all) | |
| respond_to do |format| | |
| format.html # index.html.erb |