By default RAILS_RELATIVE_URL_ROOT is used only for asset pipeline.
To namespace your rails routes you need to wrap run MyApp::Application with map in your config.ru:
map ENV['RAILS_RELATIVE_URL_ROOT'] || "/" do| # put this file in any autoloaded path on rails app. HINT: app/inputs/check_boxes_input.rb | |
| class CheckBoxesInput < Formtastic::Inputs::CheckBoxesInput | |
| def to_html | |
| unless options[:nested_set] | |
| super | |
| else | |
| nested_wrapping(options) | |
| end |
| # -*- encoding : utf-8 -*- | |
| module AsyncResque | |
| extend ActiveSupport::Concern | |
| included do | |
| include Sidekiq::Worker | |
| def perform(*args) | |
| self.class.find(args.first).send(args.last) | |
| end | |
| end |
| # app/cells/museo_table_view_cell.rb | |
| class StyledCell < UITableViewCell | |
| attr_accessor :image_cell, :title_cell, :subtitle_cell | |
| #stylesheet :main_screen | |
| def layoutSubviews | |
| p title_cell | |
| p subtitle_cell |
| module Formotion | |
| module RowType | |
| class PickerWithSearchRow < PickerRow | |
| include RowType::ItemsMapper | |
| def after_build(cell) | |
| super | |
| @items_for_search = items | |
| keyboardDoneButtonView = UIToolbar.new | |
| keyboardDoneButtonView.barStyle = UIBarStyleBlack |
| default: build | |
| build: | |
| ./make.sh build | |
| run: | |
| ./make.sh run | |
| deps: |
| package main | |
| import( | |
| "time" | |
| "strings" | |
| "strconv" | |
| "fmt" | |
| "errors" | |
| ) |
| package main | |
| import ( | |
| "bytes" | |
| "flag" | |
| "fmt" | |
| //"log" | |
| "os" | |
| "os/exec" | |
| "strings" |
| if Rails.env.test? | |
| class MailCatcher | |
| def self.create(opts) | |
| File.open("#{Rails.root}/tmp/mailcatcher/mail-#{Time.now.to_i}.html", 'w') do |f| | |
| f.write(opts[:body].raw_source) | |
| end | |
| end | |
| end |