This file contains 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
# For mocha integration, add this file into features/support folder | |
require "mocha" | |
World(Mocha::Standalone) | |
Before do | |
mocha_setup | |
end |
This file contains 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
.blog | |
#title | |
- unless entry_form.heading_image.nil? || !File.exist?(entry_form.heading_image.asset.path(:headline)) | |
= image_tag(entry_form.heading_image.asset.url(:headline)) | |
- else | |
= image_tag('headline_blank.png') | |
.image_upload | |
.threecolumn.noborder | |
- form_for(image_form, :url => assets_path, :html => {:enctype => 'multipart/form-data', :id => 'headline_image_form'}) do |f| |
This file contains 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
- unless @confirmation_code.nil? | |
- form_for(:game_citizen, :url => confirm_game_citizen_path(@game_citizen)) do |f| | |
%p | |
= f.hidden_field(:confirmation_code, :value => @confirmation_code) | |
= f.submit('Confirm my account!') | |
- if current_user | |
- if current_user.staff? | |
.admin.panel | |
%p= link_to('Create Blog post', new_entry_path) | |
%p= link_to('Create Page', new_page_path) |