save_and_open_page
have_button(locator)| ......................................................................................F.F...F..................F.FFF.F..FFF.............................................................................F................................................................................................................................................F..FFFFFFF..................................F...........................................................................FFFFFFFFFFFFFFFFF..FFF....FF.......F.FF.............................................................FF..............................................................................................................................................................FFFF......................F................................................................................................................................................................................................................................................................................ |
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
| // In a GameState, the parameters are the object to follow, the offset, the bounds and the easing. | |
| view.camera.setUp(hero, new Point(stage.stageWidth / 2, stage.stageHeight / 2), new Rectangle(0, 0, 1550, 450), new Point(.25, .05)); | |
| // You can add more interactivity : | |
| stage.addEventListener(MouseEvent.MOUSE_WHEEL, _mouseWheel); | |
| CitrusEngine.getInstance().input.keyboard.addKeyAction("rotate", Keyboard.X); | |
| private function _mouseWheel(mEvt:MouseEvent):void { | |
| if (e.delta > 0) |
| #a snippet of code from a controller | |
| #rails 3 version | |
| def create | |
| @snippet = Snippet.new(params[:snippet]) | |
| if @snippet.save | |
| uri = URI.parse("http://pygments.appspot.com/") | |
| request = Net::HTTP.post_form(uri, lang: @snippet.language, code: @snippet.plain_code) | |
| @snippet.update_attribute(:highlighted_code, request.body) | |
| redirect_to @snippet |
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript
git clone https://github.com/miksago/jade-tmbundle.git Jade
git clone https://github.com/LearnBoost/stylus.git Stylus
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |