Proxy für open-uri verwenden
In vielen Umgebungen ist der direkte Zugriff auf z.B. Web-Inhalte nur über einen Proxy möglich. In unserem heutigen Script-Tip zeigen wir euch wie ihr für open-uri einen Proxy setzen könnt.
Parameter an send Methode übergeben
Wenn der direkte Aufruf eine Methode nicht möglich ist oder auch häufig bei der Meta-Programmierung, kann in Ruby die send-Methode verwendet werden. Diese Methode wird von Ruby selber benutz um Methoden in Klassen aufzurufen.
Hin und wieder ist nötig Scripte/Programme zu einem bestimmten Zeitpunkt auszuführen. Auf unixoiden System wird in der Regel cron oder at dafür benutzt. Bei Windows kommt hierfür häufig die Services zum Einsatz. Wenn all dies nicht möglich ist oder man lieber bei Ruby bleiben will, kann unseren heutigen Script-Tip dafür benutzen.
Ruby im Webbrowser (wieder verfügbar)
Viele kennen die irb Ruby Konsole von “Why The Lucky Stiff”. Die Konsole lief im Browser und jeder konnte so seine ersten Ruby-Geh-Versuche im Browser testen bevor man sich den Interpreter installiert hat. Nach dem misteriösen Verschwinden von Why war eine zeitlang unklar was mit seinen Projekten passieren würde.
MySQL DB in UTF8 konvertieren
In der Regel sollte man das Encoding für seine Datenbanken auf UTF8 stellen um später keine bösen Überraschungen zu erleben. Falls beim Entwicklungstart diese Einstellung vergessen wurde oder wenn man sich später zu UTF8 “bekennt” kann man folgendes Ruby-Script benutzen um die Datenbank zu konvertieren.
Want to take Ruby to the limit? Looking for new, powerful, and creative ideas that will take Ruby beyond Rails and web programming? If you’re comfortable with Ruby, you’ll be itching to go further–apply Practical Ruby Projects: Fresh Ideas with Ruby and become a master of advanced Ruby techniques.
Rubyist Topher Cyll brings several imaginative projects to this book, ranging from making generative music, animations, and turn-based games to implementing simulations, algorithms, and even an implementation of Lisp!
Rails Routing focuses on the extensive and powerful routing subsystem in Rails–the suite of techniques for manipulating the process by which incoming requests to a Rails application can be matched with, or mapped to, specific actions. Rails Refactoring to Resources. If you’re new to Representational State Transfer (REST), this Short Cut will help you decide which parts of the REST paradigm you want to introduce to your application. If you’re a developer with more RESTful experience, it will introduce you to some refactorings that will give your application a cleaner, leaner code base. Rubyisms in Rails is an examination of how the style of Ruby informs the design of Rails.
Praise for Design Patterns in Ruby "Design Patterns in Ruby documents smart ways to resolve many problems that Ruby developers commonly encounter. Russ Olsen has done a great job of selecting classic patterns and augmenting these with newer patterns that have special relevance for Ruby. He clearly explains each idea, making a wealth of experience available to Ruby developers for their own daily work." -Steve Metsker, Managing Consultant with Dominion Digital, Inc. "This book provides a great demonstration of the key ‘Gang of Four’ design patterns without resorting to overly technical explanations. Written in a precise, yet almost informal style, this book covers enough ground that even those without prior exposure to design patterns will soon feel confident applying them using Ruby. Olsen has done a great job to make a book about a classically ‘dry’ subject into such an engaging and even occasionally humorous read." -Peter Cooper "This book renewed my interest in understanding patterns after a decade of good intentions.
Flexible Rails: Flex 3 on Rails 2
Flexible Rails is a unique, application-based guide for using Ruby on Rails and Adobe Flex to build rich Internet applications (RIAs). It is not an exhaustive Ruby on Rails or a Flex reference. Instead, it is an extensive tutorial in which the reader builds multiple iterations of an interesting RIA using Flex and Rails together.
Programmieren mit Ruby
Mit einem Vorwort von Yukihiro “matz” Matsumoto, dem Schöpfer von Ruby – p. Ruby ist eine neue und rein objektorientierte Skript-Sprache, die in Japan entwickelt wurde und auch in Europa und den USA die immer mehr Anhänger gewinnt. Sie zeichnet sich aus durch eine eine eingängige, gut lesbare Syntax, viele eleganten Programmier-Konstrukte sowie mächtige Funktionen zur Stringverarbeitung.
What’s Inside *How Ruby and Rails work, separately and together *Extensive Ruby language tutorial *Ruby techniques for Rails applications *Explore the Rails framework source code A new level of programming power and versatility awaits Ruby on Rails developers who master not only the conventions of Rails but the workings of the Ruby language itself. Because Rails itself and all Rails applications are written in Ruby, the knowledge of Ruby this book gives you will dramatically improve your Rails programming.
Programmierung in Ruby
Der Leitfaden der Pragmatischen Programmierer.
Dies ist die deutsche Übersetzung des Programming Ruby – The Pragmatic Programmer’s Guide (erste Fassung).
Typical enterprises use dozens, hundreds, and sometimes even thousands of applications, components, services, and databases. These run on heterogeneous operating systems and hardware, they use databases and messaging systems from various vendors, and they were written in different programming languages. And it’s your job to make them work together. This book shows you how the power and elegance of Ruby can greatly simplify your job.
Ruby is an increasingly popular, fully object-oriented dynamic programming language, hailed by many practitioners as the finest and most useful language available today. When Ruby first burst onto the scene in the Western world, the Pragmatic Programmers were there with the definitive reference manual, “Programming Ruby: The Pragmatic Programmer’s Guide”.
Suchen auf rubyonrails.de
Tags
2.0 Action Active-Record ActiveRecord Ajax Buch Capistrano Enterprise Event Formulare Gewinnspiel Grundlagen IDE irb jQuery Kochbuch Konferenz Mac OpenRoRBook OReilly OSX Passenger Phusion Plugin PragProgs Rails Rails 3 RailsWayCon Release Release Candidate Routing Ruby Ruby 1.9 RubyGems rubyonrails.de Ryan Bates Scaffolding Screencast Script-Tip Security Tutorial Upgrade Video Views WindowsAktuelle Artikel
- Alle Links zu Rails 3
- Rails 3 Upgrade Handbook PDF
- Ruby on Rails 3: Moderne Webentwicklung mit Ruby
- Rails 3.0 ist fertig
- Screencast: Polling nach Aktualisierungen
- Screencast: Sortierbare Tabellen
- Subversion und .svn Verzeichnisse finden und löschen
- Screencast: Upgrade auf Rails 3 Teil 3
- Screencast: Upgrade auf Rails 3 Teil 2
- Screencast: Upgrade auf Rails 3 Teil 1
Artikel Archiv
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- May 2009
- April 2009
- March 2009
- February 2009
- December 2008
- November 2008
- August 2008
- July 2008
- June 2008
- May 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
Aktuelle Rails Version + Abhängigkeiten:
Gem rails-3.0.0actionmailer (= 3.0.0, runtime)
actionpack (= 3.0.0, runtime)
activerecord (= 3.0.0, runtime)
activeresource (= 3.0.0, runtime)
activesupport (= 3.0.0, runtime)
bundler (~> 1.0.0, runtime)
railties (= 3.0.0, runtime)
Rails auf Rubyforge
Rails auf Github