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
| #users has_and_belongs_to trips | |
| #models | |
| class Trip < ActiveRecord::Base | |
| has_and_belongs_to :users | |
| end | |
| class User < ActiveRecord::Base | |
| has_and_belongs_to :trip | |
| 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
| class Agencia < ActiveRecord::Base | |
| belongs_to :direccion | |
| accepts_nested_attributes_for :direccion | |
| 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
| 6) programas/new.haml renders new programa form | |
| Failure/Error: assert_select "form", :action => programas_path, :method => "post" do | |
| MiniTest::Assertion: | |
| Expected at least 1 element matching "form", found 0. | |
| # (eval):2:in `assert' | |
| # ./spec/views/programas/new.html.erb_spec.rb:14:in `block (2 levels) in <top (required)>' |
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
| # shortcut to this dotfiles path is $ZSH | |
| export ZSH=$HOME/.dotfiles | |
| # your project folder that we can `c [tab]` to | |
| export PROJECTS=~/Development | |
| # source every .zsh file in this rep | |
| for config_file ($ZSH/**/*.zsh) source $config_file | |
| # use .localrc for SUPER SECRET CRAP that you don't |
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
| Vivio::Application.routes.draw do | |
| # scope '(:subdomain)', :subdomain => /admin|trial/ do | |
| match 'administrator' => 'misc_cms_pages#administrator' | |
| match 'my_account' => 'accounts#edit' | |
| match 'help' => 'misc_cms_pages#maintenance' | |
| namespace :admin do | |
| match 'home' => 'misc_cms_pages#home' |
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
| <%= form_for @page ,:remote => true, :html=>{:id=>'intro-paragraph-form'} ,:before=>"prepareFormWYSIWYGData('intro-paragraph-form');$('intro-paragraph-caption').addClassName('loading');$('intro-paragraph-caption').update('Saving...')",:complete=>"$('intro-paragraph-caption').removeClassName('loading')" do |f| %> | |
| <%= f.text_area :intro_paragraph, :id=>'intro-paragraph', :name=>:'intro_paragraph' %> | |
| <%= render :partial=>'admin/pages/wysiwyg_editor', :locals =>{:editorName=>'oEdit1', :width=>@theme.content_width+60,:replace_div=>'intro-paragraph',:body_class=>'wide'}%> | |
| <div id="intro-paragraph-buttons" class="disabled"> | |
| <div class="active-buttons"> | |
| <%= submit_button('Save Intro Paragraph',:style=>'popper',:class=>'intro-paragraph-button') %> | |
| <%= link_to_function button('Undo Changes',:style=>'popper',:class=>'intro-paragraph-button'), "oEdit1.setCurrentHTML(oEdit1.initialHTML);" %> | |
| </div> | |
| <div class="inactive-buttons"> | |
| <%= submit_button('Save Intro Paragraph',:style=>'popperDi |
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
| <%= javascript_include_tag 'assests/news_posts.js' %> | |
| <%= form_for @record,:url => news_posts_page_news_posts_path(@page), :remote => true do |f| %> | |
| <%= render :partial=>'admin/pages/form_error_messages_area'%> | |
| <div id="add-news-post-title" class="record-field required" > | |
| <div class="name block">Title</div> | |
| <div class="input"> | |
| <%= f.text_field :title,:class=>'full-width-input', :maxlength=>"255"%> | |
| </div> |
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 AccountInfo | |
| def current_account | |
| StoreAccountInfo.account | |
| end | |
| def user | |
| StoreAccountInfo.user | |
| 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
| <% form_remote_for @page ,:html=>{:id=>'intro-paragraph-form'},:url=>{:action=>'intro_paragraph_update',:id=>@page.id},:before=>"prepareFormWYSIWYGData('intro-paragraph-form');$('intro-paragraph-caption').addClassName('loading');$('intro-paragraph-caption').update('Saving...')",:complete=>"$('intro-paragraph-caption').removeClassName('loading')" do |f| %> | |
| <%= f.text_area :intro_paragraph, :id=>'intro-paragraph', :name=>:'intro_paragraph' %> | |
| <%= render :partial=>'admin/pages/wysiwyg_editor', :locals =>{:editorName=>'oEdit1', :width=>@theme.content_width+60,:replace_div=>'intro-paragraph',:body_class=>'wide'}%> | |
| <div id="intro-paragraph-buttons" class="disabled"> | |
| <div class="active-buttons"> | |
| <%= submit_button('Save Intro Paragraph',:style=>'popper',:class=>'intro-paragraph-button') %> | |
| <%= link_to_function button('Undo Changes',:style=>'popper',:class=>'intro-paragraph-button'), "oEdit1.setCurrentHTML(oEdit1.initialHTML);" %> | |
| </div> | |
| <div class="inactive-buttons"> | |
| <%= submit_but |
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
| require 'default_value/model.rb' | |
| module DefaultValue | |
| class OffersPage < DefaultValue::Model | |
| def default_name | |
| "Special Offers" | |
| end |