java-ja.OSSã®LT http://connpass.com/event/19690/
java-ja.OSSã®LT http://connpass.com/event/19690/
Track the weather and get an email when it's going to rain (or snow) tomorrow ("Don't forget your umbrella!") List terms that you care about and receive email when their occurrence on Twitter changes. (For example, want to know when something interesting has happened in the world of Machine Learning? Huginn will watch the term "machine learning" on Twitter and tell you when there is a spike in dis
Amethyst is a Rails inspired web-framework for Crystal language Download .zip Download .tar.gz View on GitHub Amethyst is a web framework written in Crystal language. The goals of Amethyst are to be fast as Node.js and comfortable as Rails. Note, Amethyst is at early stage of developing, so a lot of features are missing yet. However, it works :). Why I called my web framework "Amethyst"? Because C
ããã«ã¡ã¯ãMisocaéçºãã¼ã ã®mzpã§ãã å é±ã¯å人ã®å®¶ã«æ³ãè¾¼ãã§WWDCã®ã©ã¤ãã¹ããªã¼ã ãè¦ã¦ãã¾ããã Misocaã§ã¯Railsã¨JavaScriptã§ã®å¤ã®å ±æã«gonãå©ç¨ãã¦ãã¾ãããã¨ãããcontrollerã®ãã¹ãã失æããã¨ããå¥å¦ãªç¾è±¡ã«ééãã¾ãããä»æ¥ã¯ããã®è©±ã«ã¤ãã¦æ¸ãããã¨æãã¾ãã è¦ç´ ãã¹ãã±ã¼ã¹ãã¨ã« Gon.clear ãå¼ã¹ã°è§£æ±ºããã ããã¡ãã£ã¨é·ãè¦ç´ gonã¯request store gemã使ã£ã¦å¤ãä¿åãã controllerã®ãã¹ãå ã§ã¯ãrequest storeã¯äºæããåä½ãããªã æ示çã« Gon.clear ãå¼ã¹ã°åé¿ã§ãã gonã¨ã¯ gonã¯Railsã¨JavaScriptã§å¤ãå ±æããããã®gemã§ãã å ·ä½çã«ã¯ãRails㧠gon.user_role = "admin" ã¨ã®ããã«ããã¨ãJa
jbuilderã使ãã¯ãããã®ã§ã¡ã¢ jbuilderã¨ã¯ jsonã®ãã³ãã¬ã¼ãã¨ã³ã¸ã³ã§ãã xxx.json.jbuilderãã¡ã¤ã«ã«DSLãè¨è¿°ããã¨JSONã«ãã¦è¿ãã¦ãããã¨ããç©ã ãã¡ã¤ã«ã«è¨è¿°ããã®ã§é£ããjsonå½¢å¼ãè¿ãæã¨ãã¯ä¾¿å©ããã§ãã DHHãä½ã£ããã®ã§ãRails4ããã¯ããã©ã«ãã§ä½¿ããããã«ãªã£ã¦ããããã§ãã jbuilderã使ãããã®è¨å® Rails4ã§ã¯ç¹ã«è¨å®ãããã«å©ç¨ã§ãã¾ãã views以ä¸ã«xxx.json.jbuilderãã¡ã¤ã«ãä½ã£ã¦localhost:3000/items.jsonã«ã¢ã¯ã»ã¹ããã°jsonå½¢å¼ã®ã¬ã¹ãã³ã¹ãè¿ã£ã¦ããã¾ãã jbuilderã®æ¸ãæ¹ Modelã使ããªãæ¸ãæ¹ ä¸çªã·ã³ãã«ãªå½¢å¼ã json.set! :key, 'value' # {"key":"value"} å ¥ãåã¯ãããªæãã js
ã¯ããã« kakurenboã¨ããgemã¯ãåç¥ã§ããããï¼paranoiaã®æ¬ ç¹ãå æãã¹ã1å¹´ã»ã©åã«ç§ãéçºãå§ããgemã§ãã(åèï¼Rails4ã¨3ã§è«çåé¤ãè¡ãããã®Gem Kakurenbo ã®ç´¹ä»ã¨ä»æ´è«çåé¤Gemãå®è£ ããçç±ã - æ³¢æéã®ããã°ãã) issueãpullrequestãéä¿¡ãã¦ãã ããåæã®ã³ããã¿ã¼ã®æ¹ã ã«æ¯ããããªãã1å¹´ã»ã©ä¿å®ããã¦ãã¾ããããã®ä¸ã§èã ã¯æ°ãã¤ãã¦ããã®ã§ãããã©ããã¦ãèªããããªãã£ãé大ãªæ¬ ç¹ãããããªã¨èªèãããããã®ã§ãã¨ã ã«ãã¾ããã è«çåé¤gemã®èµ·æº kakurenboãparanoiaããå»ãã¦ãã¾ã£ã acts_as_paranoid ãåå®è£ ãããã®ã§ãã ãããã®gemã¯å°å ¥ããã ãã§ããã¤ã使ã£ã¦ããdestroyã¡ã½ãããè«çåé¤ã¡ã½ããã«æ©å¤ããããç´ æ´ãããgem...ã«ãªãã¯ãã ã£ãã®ã§
Railsã§æ¥æã表示ããéã®ããã©ã«ããã©ã¼ããããæ°ã«å ¥ããªãã£ãã®ã§ã ããã©ã«ããã©ã¼ããããè¨å®ã ã¾ããRailsã®ããã©ã«ãã¯ãããªæãã ITé¢é£ã§ã¯ãªãæ¥æ¬äººã«ã¨ã£ã¦ã YYYY-MM-DD ã¯æ £ãã¦ããªãã ãããã +0900 ã¯è¨ãããããªãªã®ã§ã YYYY/MM/DD HH:mm ã«çµ±ä¸ãããã ããã©ã«ããã©ã¼ãããã®è¨å®ã¯ config/initializers/time_formats.rb ã«ã ãã¡ã¤ã«ããªããã°æ°è¦ä½æã ä¸èº«ã¯ãããªæãã«ã
Iâm going to talk about some of the plugins and configuration that I use every day at work, which is mostly developing Ruby on Rails applications. In my case there are some elements that make a big difference when using a text editor: Switching between files and directories VCS support (git of course) Movement inside of a file Shortcuts that make my life easy Of course some of these elements can b
å ã PostgreSQLã§ã¯9.2ããJSONåã«å¯¾å¿ãã¦ããã9.4ããJSONãç¬èªãã¤ããªå½¢å¼ã§æ ¼ç´ããJSONBåã追å ãããã ãã¼ã¿ã®æ£è¦åãè¡ãããå ¥åçµæãå®å ¨ã«ä¿æãããªãã±ã¼ã¹ããã(ä¸è¦ãªè¦ç´ ã®éã®ç©ºç½æåã®åé¤ãéè¤ãããã¼ããã£ãå ´åã«å¾è¿°ãããã®ã®ã¿æå¹ã¨ãªãç)æ ¼ç´å®¹éã大ãããªãå¾åã«ãããã¾ããæ£è¦åãè¡ãããçºãæ ¼ç´å¦çã¯æ®éã®JSONåã®æ¯ã¹ã¦é ããæ¤ç´¢ãJSONã¨æ¯ã¹ã¦æ ¼æ®µã«æ©ã
æè¿ä½ã£ã¦ããRailsã¢ããªã±ã¼ã·ã§ã³ã§ã404/500ã¨ã©ã¼ã®å¯¾å¿ããã¦ããæã«ç¥ã£ãgemãyuki24/rambulanceã ã®ç´¹ä»ã§ãã ä¸è¨ã§ããã¨ããã®ãããç°¡åã«Railsã®ã¨ã©ã¼ãã³ããªã³ã°ãè¡ã£ã¦ããã¤ã¤ãã¨ã©ã¼ãã¼ã¸ãæ§ç¯ã§ããgemã§ãã
â devise ããã¾ããªã¹ã¹ã¡ããªãçç± ãã¾ãã¡ä½¿ãã®ã«æ°ãä¹ããªãçç±ã¯ãããªæã ã³ã³ããã¼ã©ã¬ã¤ã¤ä»¥éã«ä½ç¨ãã gem 㯠inspect ãç©åãããã«ãããparams ãªãããå¿ è¦ãªã³ã³ããã¹ããå ¨ã¦æããä¸ã§ãã³ã³ããã¼ã©ã new ã㦠action ãå¼ãã§ãã¿ãããªãã¨ãèããã ãã§ãã ãã ãã¹ããæ¸ãã¦ããã¨ãã¦ããç°å¢è¦å ãç¹ã«ã»ãã·ã§ã³ã¨ã¯ããã¼ã«å½±é¿ãã¦æåãå¤ããç®æãå¤ãããã®ã§ãå ¨ã¦ã®ç°å¢ã§æ£ããåç¾ãããã¨ãé£ãã ãã«ã¹ã¿ãã¯ããããã¨ãã Rails ããã devise ã«ããã¯ã¤ã³ããããã¨ã®æ¹ãå¤ããªã£ã¦è² åµåãã ãããã devise ã§ä¾¿å©ã«ãªããã¨ã®å¤ãã¯ãèªåã§ä½ã£ã¦ããããªãç©ãå¤ã 使ãããã«ã¯ãdevise ã®ã³ã¼ããå ¨é¨èªãããPR ãæãããã¨ããåæãã¤ãä¸ã®ãããªãã¨ãå ¨ã¦ä¹ãè¶ããã¤ãããªãåã¯æ¢ãã¾ãã!
Devise is a flexible authentication solution for Rails based on Warden. It: Is Rack based; Is a complete MVC solution based on Rails engines; Allows you to have multiple models signed in at the same time; Is based on a modularity concept: use only what you really need. It's composed of 10 modules: Database Authenticatable: hashes and stores a password in the database to validate the authenticity o
rakeã¿ã¹ã¯ãæ¸ãã¦ãherokuã«pushãã¦ã³ã³ã½ã¼ã«éãã¦å®è¡ã£ã¦ã®ãããã©ãããã®ã§ãèªåã®ãã¼ã«ã«éçºç°å¢ããç´æ¥ãããã¯ã·ã§ã³ã®DBããããããã£ãããã¼ã ã§ãã£ã¦ãã¨è¯ããªãã¨æããã©ãå人ããã¸ã§ã¯ããªãã¾ããããã£ã¦ãã¨ã§ã config/database.yml production_local: adapter: postgresql encoding: utf8 port: 5432 pool: 5 database: YOUR_DB_NAME username: YOUR_DB_USER_NAME password: YOUR_DB_PASSWORD host: ec2-00-000-00-000.eu-west-1.compute.amazonaws.com sslmode: require 以ä¸ã¯é©å®å¤ãã¦ãã ããã production_localï¼env
railsboxAutomate your Ruby on Rails server configuration with ansiblerailsbox helps you to start applying best DevOps practices in your project by generating ansible playbooks for configuring and deploying Ruby on Rails applications. You no longer need to edit a single configuration file on your server and use tools like capistrano for code deployments - all this comes out of the box.
ãã¡ãã®è¨äºã®è§£æ±ºç·¨ã§ãã ActiveRecord::RecordNotFoundã®ã¨ã©ã¼ã¯æ¾ç½®ãã¹ããï¼ - komagata @hiroshi3110ãããããºããªãªçããããã ãã¾ããã @komagata ... ã¨ããã£ã¦ã¾ããã ActiveRecord::Notfound ãã§ãã¨ãã¯ãã°ã¨ããã®ããããããããã« â hiroshi (@hiroshi3110) 2015, 1æ 6 æ話ã§å®è£ # lib/record_not_found_by_trustless_param.rb: class RecordNotFoundByTrustlessParam < StandardError; end # app/controllers/comics_controller.rb: class ComicsController < ApplicationController
æ¦è¦ vagrant up ä¸çºã§Ruby on Railsã®éçºç°å¢ãæ§ç¯åºæ¥ãããã«ãã¾ããã ãã¼ã«ã«ã®ãã¡ã¤ã«ã·ã¹ãã ãDockerä¸ã®ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãããåç §ãã¦ããã®ã§å¥½ããªããã¹ãã¨ãã£ã¿ã使ãã¾ãã ããã«Railsã§éçºãè¡ãã¾ããã«ã¹ã¿ãã¤ãºãããå ´åã¯Forkãã¦é ãã®ãããã¨æãã¾ãã dockerããã°ãchef使ããªãã¦è¯ãã§ããã åæè¨å® VirtualBoxç¨ã®VMã¤ã¡ã¼ã¸ããã¦ã³ãã¼ããã¾ããï¼ä»»æï¼ % vagrant box add precise64 http://files.vagrantup.com/precise64.box ãã¨ã¯ããµã³ãã«ã³ã¼ããcloneãã¦vagrant upããã ãã§ãã ååã¯30åç¨åº¦ãããã¾ãã Docker imageã®ãã¦ã³ãã¼ãã¨imageã®æ§ç¯ãããã®ã§ã ããã§ããContainerã®ãã¼ã¹ã¯1
ãããªãã®è¦æ¨¡ã®Railsããã¸ã§ã¯ãã§ã¯ããFat Modelåé¡ã¨ãFat Controlleråé¡ã課é¡ã«ãªã£ã¦ããã ã§ãFat Modelåé¡ã«ã¤ãã¦ã¯ãConcernsãªã©ã«æ¯ãèããåãåºãããããããããããã£ã¦ï¼ã¤ã®ãã¼ãã«ã«åããå¿ è¦ããï¼ãã¨ãããã®ãåå²ãããªã©ã®å¯¾çãããã å¾è ã«ã¤ãã¦ã¯ãhttp://kenn.hatenablog.com/entry/2014/03/05/081525 ãã®è¨äºããããããããµã³ãã«ã¨ãã¦Userã¢ãã«ããProfileã¢ãã«ããã¼ãã«ãã¨åãåºãä¾ãæãã¦ããã ä»åãé¢ãã£ã¦ããããã¸ã§ã¯ãã§ãä¸è¨ä¾ã®ããã«å§åãªã©ã¯Profileã«åãåºãã¦ããããã®ä»ãä½æé¢é£ã®æ å ±ãAddressã«ããéä¼çç±ãã¿ãããªãã£ãã«ã¤ãããªãæ å ±ãExtraInfoã«ãã¨ãã£ãããã«æå³åãã¨ä½¿ç¨é »åº¦ãèæ ®ãã¦ããã¤ãåå²ããè¨è¨ã«ãªã£
ããããå¤ãã®ã½ã¼ã·ã£ã«ç³»ã¢ããªã«ãã¦ã¯ã¾ãRailsã®ããã»ãã¶ã¤ã³ãã¿ã¼ã³çãªè©±ã ã¼ããä»ãã£ã¦ããEast Meet Eastã«ã¯ãã¦ã¼ã¶ãã¨ã«æ°å¤ãã®ãããã£ã¼ã«å±æ§ãããã¾ããååãæ§å¥ãçå¹´ææ¥ãéµä¾¿çªå·ãè·æ¥ãªã©ãªã©ãã«ã©ã æ°ã«ãã¦ãã£ã¨25åãããããå ¨é¨ã²ã¨ã¤ã®usersãã¼ãã«ã«è©°ãè¾¼ãã®ã¯ãã³ã¼ãã®è¦éãã¨ãã観ç¹ãããæ§è½ã®è¦³ç¹ãããããã¾ãããããããã¾ããã ãªããªãã°ãã¦ã¼ã¶é¢é£ã®æ å ±ãæ±ãå±é¢ã¨ãã¦ã¯ä¸»ã« ã¡ã¼ã«ã¢ãã¬ã¹ã¨ãã¹ã¯ã¼ããªã©ã使ã£ã¦ãã°ã¤ã³ããï¼ã¢ã«ã¦ã³ãæ å ±ï¼ ãããã£ã¼ã«æ å ±ã§æ¡ä»¶ãæå®ãã¦ã¦ã¼ã¶ãæ¤ç´¢ã»æ¨è¦ããï¼ãããã£ã¼ã«æ å ±ï¼ ã¨ããï¼ã¤ã®ç¬ç«æ§ã®é«ãã¦ã¼ã¹ã±ã¼ã¹ã«ããããããããã°ã¤ã³å¦çããã£ã¦ãã¨ãã«ã¯ãããã£ã¼ã«æ å ±ã¯ãããªããããããã£ã¼ã«ãæ¤ç´¢ãã¦ãã¨ãã«ã¯ã¡ã¼ã«ã¢ãã¬ã¹ããã¹ã¯ã¼ãããã¼ãããã®ã¯ç¡é§ã§ããã¾ããéçºãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}