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 TaskController < ApplicationController | |
def incomplete | |
@tasks = Task.find(:all, :conditions => ['complete = ?', false]) | |
end | |
def last_incomplete | |
@task = Task.find(:first, :conditions => ['complete =?', false], :order => 'created_at DESC') | |
end | |
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
=begin | |
**이 문서는 루비 2.0.0-p0 버전의 Ruby core API 기반의 메소드를 사용합니다.** | |
** 작성자 정보 | |
** 박창주 | |
** pcjpcj2@gmail.com | |
** http://parkcj.wordpress.com | |
** 2013-04-07 | |
이상 시인의 시 오감도 제 1호를 작성하여 보자 | |
시의 전문 : | |
오감도(烏瞰圖) 시 제1호 |
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
=begin 문자열 출력해보기 | |
**이 문서는 루비 2.0.0-p0 버전의 Ruby core API 기반의 메소드를 사용합니다.** | |
** 작성자 정보 | |
** 박창주 | |
** pcjpcj2@gmail.com | |
** http://parkcj.wordpress.com | |
** 2013-04-07 | |
single quotation vs double quotation | |
''와 ""의 차이를 알아보자 | |
우선 puts 는 문자열을 출력하는 함수이다. |
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
=begin | |
**이 문서는 루비 2.0.0-p0 버전의 Ruby core API 기반의 메소드를 사용합니다.** | |
** 작성자 정보 | |
** 박창주 | |
** pcjpcj2@gmail.com | |
** http://parkcj.wordpress.com | |
** 2013-04-07 | |
예를 들어 특정 횟수만큼 문장을 반복할 일이 생긴다면 | |
어떻게 해야할까? | |
-> 1. 1번의 Hello World!를 출력해보자 |
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
# encoding: utf-8 | |
=begin | |
**이 문서는 루비 1.9.3-p392 버전의 Ruby core API 기반의 메소드를 사용합니다.** | |
** 작성자 정보 | |
** 박창주 | |
** pcjpcj2@gmail.com | |
** http://parkcj.wordpress.com | |
** 2013-04-07 | |
조금 더 문자열에 대해서 알아보자. |
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
# encoding: utf-8 | |
=begin | |
**이 문서는 루비 2.0.0-p0 버전의 Ruby core API 기반의 메소드를 사용합니다.** | |
** 작성자 정보 | |
** 박창주 | |
** pcjpcj2@gmail.com | |
** http://parkcj.wordpress.com | |
** 2013-04-07 | |
이상의 오감도 제 1호 계속 |
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
" #################### Vim #################### | |
" ########## File ########## | |
set nocompatible | |
set backspace=indent,eol,start " Backspace 사용에 이전 줄과 연결 | |
set backup " Backup 활성화 | |
set backupdir=~/.vim/backup | |
set history=50 " 명령어 기록 수 | |
set novisualbell " 화면 깜빡임 사용안함 | |
set noerrorbells " 오류음 사용안함 | |
set lazyredraw " 매크로 실행중 화면을 다시 그리지 않음 |
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
<%-- Created by IntelliJ IDEA. --%> | |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<form method="POST" action="loginhandle.jsp"> | |
<p>ID : <input type="text" name="userId"></p> | |
<p>PW : <input type="password" name="userPassword"></p> |
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
<%-- | |
Created by IntelliJ IDEA. | |
User: changju | |
Date: 13. 4. 24 | |
Time: 오후 9:36 | |
To change this template use File | Settings | File Templates. | |
--%> | |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> | |
<html> | |
<head> |
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
/** | |
* Created with IntelliJ IDEA. | |
* User: changju | |
* Date: 13. 4. 24 | |
* Time: 오후 9:40 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
package javaBean; | |
public class User { |