본문 바로가기

Rails

[Rails] ActiveModel::MassAssignmentSecurity::Error in PostsController#create 레일즈 가이드를 보고 따라 하는데 Tag 설정하는 부분에서 막힌다.하라는 대로 다 하고 저장하면 오류 발생 ActiveModel::MassAssignmentSecurity::Error in PostsController#create 구글링 해보니 모델의 post.rb에 한줄을 더 추가 해야 한다. attr_accessible :tags_attributes 이거 한줄 넣어주니 문제 해결
[Rails] rails new blog 시 오류 이미 내 자리엔 rails와 ruby가 설치 되어 있다.레드마인 인스톨러가 설치시 함께 설치 했기 때문이다. 레일즈 공부를 처음 부터 해보려고 아래 사이트를 찾았다. http://rubykr.github.com/rails_guides/getting_started.html 그리고 시작을 위해 터미널을 열고 아래 명령어를 실행 했다. $ rails new blog 바로 오류... C:/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/generators/app_base.rb:254:in ``': Invalid argument - ""C:/BitNami Redmine Stack/ruby/bin/ruby.exe"" -rubyge..
[Rails] 개발 모드 변경하기 레드마인은 레일즈로 만들어져 있다.레드마인을 사용하는데 겐트 차트의 디자인을 조금 수정하고 페이지를 보니 수정이 반영되질 않는다.웹서버를 재시작 해야만 반영된다. 망할... 개발 모드로 변경하는 방법을 모르겠다..ㅜㅜ -----------------------------------------------찾았다!!![Rails App Path]\config\environment.rb 를 수정 하면 된다. # Load the rails applicationrequire File.expand_path('../application', __FILE__) # Make sure there's no plugin in vendor/plugin before startingvendor_plugins_dir = File.joi..