'Rails'에 해당되는 글 3건

  1. 2010.07.14 Rails 에서 업로드 컴포넌트로 플래쉬를 사용할 경우에.
  2. 2010.07.09 ruby에서 UTF-8 문자열을 EUC-KR 로 변환하는 방법.
  3. 2010.06.28 Rails 에서 정말 간편한 Helper 함수들 목록.

Rails 에서 업로드 컴포넌트로 플래쉬를 사용할 경우에.

엄청 많은 삽질을 통해서...

이거 제대로 다들 알고 있지 못하는듯 하다. -_-

multiple file upload with rails. (fancyupload)

ActionController::InvalidAuthenticityToken
에러로 무지하게 고생을 했으나.

ApplicationController 에서 기본적으로 사용하는 인증 토큰 부분을 없애버려서 잘 사용하고 있다.

class ApplicationController < ActionController::Base

  helper :all # include all helpers, all the time

  #protect_from_forgery # See ActionController::RequestForgeryProtection for details

  self.allow_forgery_protection = false

  # Scrub sensitive parameters from your log

  # filter_parameter_logging :password

  

  layout "application"

end




'OLD POSTS' 카테고리의 다른 글

OGRE3D for iPhone.  (0) 2010.08.26
Python Expression For Nuke.  (0) 2010.07.20
ruby에서 UTF-8 문자열을 EUC-KR 로 변환하는 방법.  (0) 2010.07.09
Rails 에서 정말 간편한 Helper 함수들 목록.  (0) 2010.06.28
QT4 VS2008 Installer  (0) 2010.06.26

ruby에서 UTF-8 문자열을 EUC-KR 로 변환하는 방법.

require "iconv"

Iconv.new('EUC-KR', 'UTF-8').iconv(string)



Rails 에서 정말 간편한 Helper 함수들 목록.


http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M000423

Rails 의 Helper 함수들.

테이블 리스트로 출력시 cycle('odd', 'even') 이건 정말이지. 짱이삼.!
prev 1 next