background preloader

Rails

Facebook Twitter

Ruby on Rails: referências de leitura. Aloha! Antes de tudo, gostaria de deixar aqui a surpresa (e alegria) em ver meu artigo sobre a migração de PHP para o Ruby on Rails depois de 5 meses na capa do iMasters. Muito bacana ver as pessoas discutindo com argumentos e tudo mais sobre Python/Django e PHP. Valew aê a todos. Chegaram alguns e-mails do pessoal me pedindo referências de leitura, links, livros e algumas perguntando qual linguagem estudar: tentei ajudar com base no que vejo hoje como desenvolvedor e também como empresário no mercado de desenvolvimento de software. Então, vai uma lista de coisas que li/leio sobre Ruby (linguagem) e Ruby on Rails (framework) e todo seu entorno. Livros Praticamente todos os livros que li são da série The Pragmatic Programmers: é uma editora muito bacana e com vários nomes de peso. Agile Web Development with Rails (4rd Edition) é um ótimo livro para se começar com Rails. Sites Rails Guides ( são os guias oficiais do Rails 3 (e também da 2.3).

RubyConf Brasil 2010 (slides e vídeo) - Nome do Jogo. Url?sa=t&source=web&cd=1&ved=0CBgQFjAA&url=http%3A%2F%2Frailscasts. Devise is a full-featured authentication solution which handles all of the controller logic and form views for you. Learn how to set it up in this episode. Download: source codeProject Files in Zip (156 KB)mp4Full Size H.264 Video (20.9 MB)m4vSmaller H.264 Video (12.6 MB)webmFull Size VP8 Video (30.8 MB)ogvFull Size Theora Video (28.7 MB)

jQuery and Rails 3: A mini tutorial. jQuery and Rails 3: A mini tutorial As most of Rails developers, recently I’ve been through a process of unlearning all concepts of older versions of Rails and learning again the new ones of 3. But hey! I must admit that so far it’s been more pleasure than pain as things only get simpler and more natural than they used to be! Here I’d like to talk about how simple it has become to integrate unobtrusive jQuery to a Rails app. Start typing in your teminal: rails myCommentsApp rails g resource Comment name:string body:text rake db:migrate Then we have to include the jQuery library and the jQuery driver file and place it inside /public/javascripts/ (or grab the helpers generator of Code Officer and do it automatically if you wish). Javascript_include_tag " javascript_include_tag " javascript_include_tag "jquery-rails.js" Now let’s add some logic to our program. Using Redis with Ruby on Rails.

Buy The Redis Book! Written by Redis creator, Salvatore Sanfilippo, and key contributor, Pieter Noordhuis, the Redis Book will show you how to work with different data structures, how to handle memory, replication, and the cache itself, and how to implement messaging, amongst other things! Buy the book Redis is an extremely fast, atomic key-value store. It allows the storage of strings, sets, sorted sets, lists and hashes. Redis is an open source, advanced key-value store. The above quote was taken from the official Introduction to Redis page. Table of Contents Redis Data Types Below is a general overview of the data types available to you in Redis: As well as those basic types, there is also the ability to do PubSub with Redis.

Installing Redis Installation is simple: curl -O tar xzf redis-2.2.2.tar.gz cd redis-2.2.2 make cp src/redis-server src/redis-cli /usr/bin Starting Redis Server redis-server /path/to/redis.conf Redis and Rails Monit God. Monte sua própria rede social com Rails. Com o sucesso do Twitter e Facebook, atualmente as redes sociais são a “bola da vez” na web. De acordo com a Wikipedia , uma rede social é “ “.

As redes sociais podem operar em diferentes níveis, como, por exemplo, redes de relacionamentos, redes profissionais, redes comunitárias (em bairros ou cidades), redes políticas, dentre outras. Apesar dos públicos serem diferenciados, todos eles querem compartilhar informações, conhecimentos, interesses e esforços em busca de objetivos comuns. Parece que, do ponto de vista dos internautas, compartilhar (links, imagens, dados, fotos, fofocas) é o que move a internet – pelo menos até a próxima moda aparecer.

E as empresas também estão de olho nas possibilidades corporativas das redes sociais, ou seja, um “facebook interno” como ferramenta de colaboração e comunicação dentro do espaço da empresa. O Insoshi é uma plataforma open-source de rede social, com código fonte disponível sob a licença MIT. Artigos relacionados Monte um Orkut em sua aplicação. How to install Rails 3.0 and Ruby 1.9.2 on Ubuntu. Create a Simple Twitter App with Rails. Jun 24 2009 Ruby on Rails is a web application framework that promotes rapid development. Clients’ demands are ever increasing yet they still expect the same quality of output.

Frameworks, like Rails, help to achieve this; why? … here are some of the reasons: Convention over Configuration (CoC): This is used to reduce the amount of up-front configuartion. Who is this Tutorial for? This tutorial is for people who have learnt the basics of Rails and want to take things to the next level. What this Tutorial Covers In the first part of this three part series, we cover setting up a simple message model, which will hold the messages posted. View Demo of Twitter App with Ruby on Rails Basic Application Design Ok, so you’ve decided to create a “twitter” style micro-blog using Ruby on Rails. There are many ways that this can be done, but we will use a simple technique in which you jot down a few paragraphs about how and what the application is expected to do then highlight the nouns.

PostUser Controller. Getting Started with Rails. 1 Guide Assumptions This guide is designed for beginners who want to get started with a Rails application from scratch. It does not assume that you have any prior experience with Rails. Rails is a web application framework running on the Ruby programming language. If you have no prior experience with Ruby, you will find a very steep learning curve diving straight into Rails. There are several curated lists of online resources for learning Ruby: Be aware that some resources, while still excellent, cover versions of Ruby as old as 1.6, and commonly 1.8, and will not include some syntax that you will see in day-to-day development with Rails. 2 What is Rails? Rails is a web application development framework written in the Ruby programming language. Rails is opinionated software. The Rails philosophy includes two major guiding principles: 3 Creating a New Rails Project The best way to read this guide is to follow it step by step. 3.1 Installing Rails Open up a command line prompt. 4 Hello, Rails!

Ajax no Rails 3. §. Akita Rails - Consegi. Desenvolvendo do zero uma aplicação facebook.