Showing posts with label rails. Show all posts
Showing posts with label rails. Show all posts

Sep 10, 2011

Deployinator - Deploy code like Etsy

Deployinator is a deployment framework extracted from Etsy.

Here is a blog post explaining the rationale behind it and how it helps us out.

For anyone deploying code (engineers, designers… anyone really), it’s an easy process.
Once your code is ready to go, you go to Deployinator and push the button to get it on QA. From there it visits Princess (see the sidebar).

Then, when it’s ready to go live, you hit the “Prod” button and soon your code is live, and everyone in IRC knows who pushed what code, complete with a link to the diff.

For anyone not on IRC, there’s the email that everyone gets with the same information.

Rack-webconsole, a Ruby/Rails console inside your browser


Rack-webconsole is a Rack middleware that enhances your development experience providing a JavaScript-powered bridge to your Ruby application backend.

With it you can interact with your database and explore the runtime environment from within the browser.

Although it should be used mainly in development environments, I personally think it could be a useful tool for staging as well.

Avoids the pain interacting with some console over an SSH session :) Here you have a little video showing how it works (watch in HD, otherwise you won't see the tiny letters!):

 

Tripwire - Stop hurting your users


Jeffrey Chupp and Jeremy Weiskotten recently built a new web service aimed at supporting developers, called Tripwire.

It integrates with Rails and remotely logs your form validation errors.

With this information, you can find out where your users are having the most trouble and streamline your web application.

Tripwire is in private alpha but will be open to the world soon.

Yes, Slim is speedy


Slim
Slim is a template language whose goal is to reduce the view syntax to the essential parts without becoming cryptic.

What?

Slim is a fast, lightweight templating engine with support for Rails 3. It has been tested on Ruby 1.9.2 and Ruby/REE 1.8.7.

Slim's core syntax is guided by one thought: "What's the minimum required to make this work".

As more people have contributed to Slim, there have been optional syntax additions influenced from their use of Haml and Jade. The Slim team is open to these optional additions because we know beauty is in the eye of the beholder.

Slim uses Temple for parsing/compilation and is also integrated into Tilt, so it can be used together with Sinatra or plain Rack.

Sample View:

doctype html
html
  head
    title Slim Examples
    meta name="keywords" content="template language"

  body
    h1 Markup examples
    #content.example1
      p Nest by indentation

    = yield

    - unless items.empty?
      table
        - for item in items do
          tr
            td = item.name
            td = item.price
    - else
      p No items found

    #footer
      | Copyright © 2010 Andrew Stone

    = render 'tracking_code'

    script
      | $(content).do_something();

Aug 29, 2011

Rails 3.1.0.rc8 has been released !!!


This is the final release candidate. Rails 3.1.0 will be release next on August 30th :-)


Aug 25, 2011

Digging Into The Rails Command Line

Have you ever wondered what happens behind the scenes when you start your server using the following command: ?

rails s

Storks has written an excellent article on how the command is hooked up with the rails application.


Source: Storks

Aug 20, 2011

Rails 2.3.14, 3.0.10 and 3.1.0-rc6 Released

The Rails developers have pushed out three new releases in tandem to fix the same security vulnerabilities. All three major branches have been covered. The vulnerabilities include:

  • SQL injection vulnerability
  • A way for attackers to render a view without first calling the corresponding action
  • A XSS vulnerability in the strip_tags helper
  • Another XSS vulnerability, this time having to do with the UTF8 parsing code

It's recommended that everyone upgrade, as the SQL injection and XSS vulnerabilities can be particularly damaging.

    Brightbox - Serious rails hosting out of the box

    Brightbox provides Xen-based virtualised servers, optimised for hosting Ruby on Rails.

    Each Brightbox server comes with RAID10 storage, access to our managed MySQL cluster and the Brightbox Rails stack preinstalled.

    Link: http://www.brightbox.co.uk/ 

    Aug 18, 2011

    Interview: Aaron Patterson upon Rails 3.1 as well as Ruby Performance

    Aaron Patterson talks about opening in Ruby as well as Rails, a small of a hurdles Rails as well as Rack poise for a Ruby GC, as well as most more.

    Link: http://www.infoq.com/interviews/patterson-ruby-performance

    Rails HTTP Status Code to Symbol Mapping


    Status CodeStatus MessageSymbol
    1xx Informational
    100Continue:continue
    101Switching Protocols:switching_protocols
    102Processing:processing
    2xx Success
    200OK:ok
    201Created:created
    202Accepted:accepted
    203Non-Authoritative Information:non_authoritative_information
    204No Content:no_content
    205Reset Content:reset_content
    206Partial Content:partial_content
    207Multi-Status:multi_status
    226IM Used:im_used
    3xx Redirection
    300Multiple Choices:multiple_choices
    301Moved Permanently:moved_permanently
    302Found:found
    303See Other:see_other
    304Not Modified:not_modified
    305Use Proxy:use_proxy
    307Temporary Redirect:temporary_redirect
    4xx Client Error
    400Bad Request:bad_request
    401Unauthorized:unauthorized
    402Payment Required:payment_required
    403Forbidden:forbidden
    404Not Found:not_found
    405Method Not Allowed:method_not_allowed
    406Not Acceptable:not_acceptable
    407Proxy Authentication Required:proxy_authentication_required
    408Request Timeout:request_timeout
    409Conflict:conflict
    410Gone:gone
    411Length Required:length_required
    412Precondition Failed:precondition_failed
    413Request Entity Too Large:request_entity_too_large
    414Request-URI Too Long:request_uri_too_long
    415Unsupported Media Type:unsupported_media_type
    416Requested Range Not Satisfiable:requested_range_not_satisfiable
    417Expectation Failed:expectation_failed
    422Unprocessable Entity:unprocessable_entity
    423Locked:locked
    424Failed Dependency:failed_dependency
    426Upgrade Required:upgrade_required
    5xx Server Error
    500Internal Server Error:internal_server_error
    501Not Implemented:not_implemented
    502Bad Gateway:bad_gateway
    503Service Unavailable:service_unavailable
    504Gateway Timeout:gateway_timeout
    505HTTP Version Not Supported:http_version_not_supported
    507Insufficient Storage:insufficient_storage
    510Not Extended:not_extended

    Source:  codyfauser

    Jul 22, 2011

    Rails Hotline

    http://www.railshotline.com/

    Nice initiative to help the rails community.
    Have signed up as a volunteer. Will share my experience soon.

    Bushido - Heroku alternative

    http://bushi.do/

    We need to proved the git-hub URL of the project and the service will take care of the rest. But seems like its still in beta and it has got a long way ahead..