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 PatternsController < ApplicationController | |
def new | |
@pattern = Pattern.new | |
end | |
def create | |
@pattern = Pattern.new(pattern_params) | |
if @pattern.save | |
flash[:success] = "You have successfully registered!" | |
redirect_to pattern_path |
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
WARN: Unresolved specs during Gem::Specification.reset: | |
pygments.rb (~> 0.6.0) | |
redcarpet (~> 3.1) | |
jekyll-watch (~> 1.1) | |
classifier-reborn (~> 2.0) | |
WARN: Clearing out unresolved specs. | |
Please report a bug if this causes problems. |
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
``` | |
refinerycms codednoob | |
exist | |
conflict README.rdoc | |
Overwrite /home/kinsomicrote/codelab/railz/codednoob/README.rdoc? (enter "h" for help) [Ynaqdh] y | |
force README.rdoc | |
conflict Rakefile | |
Overwrite /home/kinsomicrote/codelab/railz/codednoob/Rakefile? (enter "h" for help) [Ynaqdh] y | |
force Rakefile | |
conflict config.ru |
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
/opt/rh/ror40/root/usr/share/gems/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `<top (required)>' | |
/opt/rh/ruby200/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:118:in `require' | |
/opt/rh/ruby200/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:118:in `rescue in require' | |
/opt/rh/ruby200/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:124:in `require' | |
/opt/rh/ruby200/root/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/loader_shared_helpers.rb:212:in `run_load_path_setup_code' | |
/opt/rh/ruby200/root/usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-loader.rb:69:in `load_app' | |
/opt/rh/ruby200/root/usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-loader.rb:96:in `<module:App>' | |
/opt/rh/ruby200/root/usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-loader.rb:4:in `<module:PhusionPassenger>' | |
/opt/rh/ruby200/root/usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-loader.rb:3:in `<main>' | |
197.211.52.12 - - [31/Jul/2015:07:01:53 -0 |
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
[509857] Puma starting in cluster mode... | |
[509857] * Version 2.11.1 (ruby 2.0.0-p353), codename: Intrepid Squirrel | |
[509857] * Min threads: 5, max threads: 5 | |
[509857] * Environment: development | |
[509857] * Process workers: 2 | |
[509857] * Preloading application | |
[509857] * Listening on tcp://127.5.177.129:8080 | |
[509857] * Listening on tcp://0.0.0.0:3000 | |
/var/lib/openshift/55bc8ff17628e1f072000025/app-root/runtime/repo/vendor/bundle/ruby/gems/puma-2.11.1/lib/puma/binder.rb:210:in `initialize': Permission denied - bind(2) (Errno::EACCES) | |
from /var/lib/openshift/55bc8ff17628e1f072000025/app-root/runtime/repo/vendor/bundle/ruby/gems/puma-2.11.1/lib/puma/binder.rb:210:in `new' |
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
<div class="fzbuk-login-form-wrap"> | |
<div class="fzbuk-login-form"> | |
<h1>Login using your existing social media account</h1> | |
<p> | |
<a class="facebook" href="[facebook-login-url]">Continue with Facebook</a> | |
</p> | |
<p> | |
<a class="google" href="[twitter-login-url]">Continue with Twitter</a> |
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 "prawn" | |
Prawn::Document.generate("greeting-card.pdf") do | |
stroke_color "008080" | |
stroke do | |
self.line_width = 10 | |
stroke_color "FF0000" #red | |
horizontal_line 0, 550, :at => 700 | |
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
require "prawn" | |
Prawn::Document.generate("greeting-card2.pdf") do | |
font_families.update( | |
"Candara" => { | |
:normal => "#{Prawn::DATADIR}/fonts/Candara.ttf" | |
} | |
) |
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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
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
Running via Spring preloader in process 18348 | |
Loading development environment (Rails 5.0.0.1) | |
[1] pry(main)> Region.province | |
NoMethodError: undefined method `province' for Region (call 'Region.connection' to establish a connection):Class | |
from /home/kinsomicrote/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/dynamic_matchers.rb:21:in `method_missing' | |
[2] pry(main)> Region.provinces | |
NoMethodError: undefined method `provinces' for Region (call 'Region.connection' to establish a connection):Class | |
from /home/kinsomicrote/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/dynamic_matchers.rb:21:in `method_missing' | |
[3] pry(main)> Province.region | |
NoMethodError: undefined method `region' for Province (call 'Province.connection' to establish a connection):Class |
OlderNewer