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
Processing TopicsController#create (for 127.0.0.1 at 2009-10-02 18:36:14) [POST] | |
Parameters: {"commit"=>"Submit", "authenticity_token"=>"75fB/RVjaTLiUSshvwlaAdJ+m+2WujhVDRw/iC7kdEM=", "topic"=>{"last_post_at(1i)"=>"2009", "name"=>"asdfasdf", "last_post_at(2i)"=>"10", "last_post_at(3i)"=>"2", "last_post_at(4i)"=>"23", "last_post_at(5i)"=>"34", "game_id"=>"1"}} | |
Topic Create (0.4ms) INSERT INTO "topics" ("name", "last_post_at", "created_at", "updated_at", "game_id") VALUES('asdfasdf', '2009-10-02 23:34:00', '2009-10-02 23:36:14', '2009-10-02 23:36:14', NULL) |
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
Processing TopicsController#create (for 127.0.0.1 at 2009-10-02 19:06:08) [POST] | |
Parameters: {"commit"=>"Submit", "authenticity_token"=>"75fB/RVjaTLiUSshvwlaAdJ+m+2WujhVDRw/iC7kdEM=", "topic"=>{"last_post_at(1i)"=>"2009", "name"=>"3wfu8asdf", "last_post_at(2i)"=>"10", "last_post_at(3i)"=>"2", "last_post_at(4i)"=>"23", "last_post_at(5i)"=>"34", "game_id"=>"1"}} | |
Topic Create (15.0ms) INSERT INTO "topics" ("name", "last_post_at", "created_at", "updated_at", "game_id") VALUES('3wfu8asdf', '2009-10-02 23:34:00', '2009-10-03 00:06:09', '2009-10-03 00:06:09', NULL) |
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
#routes.rb | |
new_game_topic_post GET /games/:game_id/topics/:topic_id/posts/new(.:format) {:action=>"new", :controller=>"posts"} | |
========== | |
#posts/show.html.erb | |
<%=h @topic.name %> | |
<table> | |
<tr> | |
<th width="60%">post Title</th> | |
<th width="10%">Replies</th> |
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
Roles Release 0.1 | |
Basic forum posting ability (including validation) | |
User Reads Games | |
Topics | |
Posts | |
Users creates Game | |
Topic | |
Post |
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
#routes | |
map.root :controller => "games", :action => "index" | |
# games_routing_spec | |
it "recognizes and generates root as #index" do | |
{ :get => "/" }.should route_to(:controller => "games", :action => "index") | |
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
class PostsController < ApplicationController | |
# GET /posts | |
# GET /posts.xml | |
def index | |
@posts = Post.all | |
respond_to do |format| | |
format.html # index.html.erb | |
format.xml { render :xml => @posts } |
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
ERROR: CONFIG: Line 177: gaps inner all set 0 | |
ERROR: CONFIG: ^^^^^^^^^ | |
ERROR: CONFIG: Line 178: | |
ERROR: CONFIG: Line 179: # Start i3bar to display a workspace bar (plus the system information i3status | |
ERROR: FYI: You are using i3 version 4.12-104-g9753891 (2016-06-22, branch "gaps-next") |
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
$ apt-file search Xlib-xcb.h | |
libx11-xcb-dev: /usr/include/X11/Xlib-xcb.h | |
$ cat /usr/include/X11/Xlib-xcb.h | |
cat: /usr/include/X11/Xlib-xcb.h: No such file or directory |
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
// Doesnt work (puts everything in password field): | |
const emailField = cy.getByLabelText('Email Address'); | |
const passwordField = cy.getByLabelText('Password'); | |
emailField.type('[email protected]'); | |
passwordField.type('password01'); | |
// Works (types in correct inputs): | |
const emailField = cy.getByLabelText('Email Address'); | |
emailField.type('[email protected]'); | |
const passwordField = cy.getByLabelText('Password'); |
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
import { Editor } from 'slate-react'; | |
import { toNumber } from 'lodash'; | |
import Plain from 'slate-plain-serializer'; | |
import PropTypes from 'prop-types'; | |
import React from 'react'; | |
class PlainTextEditor extends React.Component { | |
static propTypes = { | |
inline: PropTypes.bool, | |
value: PropTypes.string, |
OlderNewer