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
mysql> select * from sites; | |
+----+-----------------------+-------------+--------------+----------+-------------+ | |
| id | host | layout | cetrel_appid | show_all | redirect_to | | |
+----+-----------------------+-------------+--------------+----------+-------------+ | |
| 3 | reisen.sales-lentz.lu | application | VSL | 1 | travels_url | | |
| 4 | reisen.travel.lu | travel_lu | TRR | 1 | travels_url | | |
| 5 | xmas.sales-lentz.lu | xmas | VSL | 1 | | | |
+----+-----------------------+-------------+--------------+----------+-------------+ | |
3 rows in set (0.01 sec) |
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
module ActionController | |
class Base < Metal | |
abstract! | |
include AbstractController::Callbacks | |
include AbstractController::Logger | |
include ActionController::Helpers | |
include ActionController::HideActions | |
include ActionController::UrlFor |
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
module ActionController | |
# Layouts reverse the common pattern of including shared headers and footers in many templates to isolate changes in | |
# repeated setups. The inclusion pattern has pages that look like this: | |
# | |
# <%= render "shared/header" %> | |
# Hello World | |
# <%= render "shared/footer" %> | |
# | |
# This approach is a decent way of keeping common structures isolated from the changing content, but it's verbose | |
# and if you ever want to change the structure of these two includes, you'll have to change all the templates. |
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
migration 1, :shoe do | |
up do | |
create_table :shoes do | |
column :id, Serial, :nullable? => false | |
column :brand, String,, :nullable? => false | |
column :price, Float,, :nullable? => false | |
column :available, Boolean, :nullable? => false | |
column :created_at, DateTime, :nullable? => false | |
column :updated_at, DateTime, :nullable? => false | |
end |
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
def initialize(params={}) | |
@from_date=params["from_date"].to_date if params["from_date"] | |
@to_date=params["to_date"].to_date if params["to_date"] | |
@from_time=params["from_time"] if params["from_time"] | |
@to_time=params["to_time"] if params["to_time"] | |
@busroute_ids=params["busroute_ids"] if params | |
end |
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
def initialize(params={}) | |
if params.kind_of? Hash | |
@from_date=params["from_date"].to_date | |
@to_date=params["to_date"].to_date | |
@from_time=params["from_time"] | |
@to_time=params["to_time"] | |
@busroute_ids=params["busroute_ids"] | |
end | |
end |
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
def initialize(params={}) | |
if params.kind_of? Hash | |
@from_date=params["from_date"].to_date if params["from_date"] | |
@to_date=params["to_date"].to_date if params["to_date"] | |
@from_time=params["from_time"].to_time if params["from_time"] | |
@to_time=params["to_time"].to_time if params["to_time"] | |
@busroute_ids=params["busroute_ids"] | |
end | |
end |
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
def initialize(params={}) | |
if params.kind_of? Hash | |
@from_date=params["from_date"].to_date if params["from_date"] | |
@to_date=params["to_date"].to_date if params["to_date"] | |
@from_time=params["from_time"] if params["from_time"] | |
@to_time=params["to_time"] if params["to_time"] | |
@busroute_ids=params["busroute_ids"] | |
end | |
end |
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
Auf Ihrer einzigartigen Reise durchs ehemalige Indochina erleben Sie das | |
aufstrebende Vietnam und das verschlafene Laos sowie eine faszinierende | |
Flusskreuzfahrt auf dem oberen Mekong an Bord der ganz neu erbauten, | |
exklusiven Mekong Explorer. Von Saigon erreichen Sie auf dem ersten | |
Abschnitt Ihrer Reise die Halong-Bucht, das Naturwunder im Norden Vietnams. | |
Von der charmanten Hauptstadt Hanoi fliegen Sie anschließend | |
weiter nach Laos. Erleben Sie auf komfortabelste Weise alle Höhepunkte | |
rund um die Perle Südostasiens, dem UNESCO-Weltkulturerbe Luang Prabang, | |
sowie das typisch gemächliche Leben entlang dem Mekong-Strom, | |
der das Land und das Leben der Menschen so nachhaltig prägt. |
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
# This file is auto-generated from the current state of the database. Instead of editing this file, | |
# please use the migrations feature of Active Record to incrementally modify your database, and | |
# then regenerate this schema definition. | |
# | |
# Note that this schema.rb definition is the authoritative source for your database schema. If you need | |
# to create the application database on another system, you should be using db:schema:load, not running | |
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations | |
# you'll amass, the slower it'll run and the greater likelihood for issues). | |
# | |
# It's strongly recommended to check this file into your version control system. |