concept application in category ruby

This is an excerpt from Manning's book Rails 4 in Action: Revised Edition of Rails 3 in Action.
The application you’ll generate will be able to record purchases you’ve made. You can generate it using this command:

This is an excerpt from Manning's book Rails 3 in Action.
With Rails now installed, to generate an application, you run the rails command and pass it the new argument and the name of the application you want to generate: things_i_bought. When you run this command, it creates a new directory called things_i_bought, which is where all your application’s code will go. You can call your application anything you wish, but it can’t be given the same name as a reserved word in Rails. For example, you wouldn’t call your application rails because it defines a Rails constant, which is internal to Rails, and the two constants would clash.
The application that you’re going to generate will be able to record purchases you have made. You can generate it using this command:
And I follow "New Ticket" Missing template tickets/new, application/new with {:handlers=>[:erb, :builder], :formats=>[:html], :locale=>[:en, :en]}. Searched in: * ".../ticketee/app/views"

This is an excerpt from Manning's book Ruby in Practice.
Listing 1.6. Map is one way Ruby uses functional programming for parallelism
# Code that iterates in order to map one array to another application_names = [] for application in applications application_names << application.visible_name end # Code that maps one array to another applications.map { |application| application.visible_name } # An even shorter way to express it in Rails and Ruby 1.9 applications.map &:visible_name
Ruby seems to hit the sweet spot and appeal to developers who value natural interfaces and choose to migrate away from languages that inherently promote complexity. But why? Why would developers move away from “proven” technologies to Ruby, which is, arguably, the “new kid,” regardless of its positive aspects? Primarily because Ruby is a dynamic language that works well for applications and scripting, that supports the object-oriented and functional programming styles, that bakes arrays and hash literals into the syntax, and that has just enough metaprogramming features to make building domain-specific languages fun and easy. Had enough marketing? Of course, this laundry list of buzzwords is not as important as what happens when you combine all these features together. In combination, the buzzwords and abstract concepts become a powerful tool.
For veteran Rails developers, a lot of this will be familiar: we will discuss using Capistrano to deploy applications, packaging up reusable components in Ruby gems, and using God to monitor a deployed application. However, we will go beyond the common uses of these tools and explain how to customize them for a variety of server-based applications, beyond Rails.
Keep in mind that the process of deploying live applications can be complex. The topic could easily fill an entire book of this size. This chapter will focus on tools written in Ruby that can help you deploy applications and libraries. If you’re interested specifically in web applications, you can find setup and configuration instructions in appendix C.

This is an excerpt from Manning's book Flexible Rails: Flex 3 on Rails 2.
Because Flex 3 targets one platform (Flash 9), we don’t have to worry about platform compatibility issues. The Write Once, Run Anywhere (WORA) dream that client-side Java programmers had—before it turned into “write once, debug everywhere”—can finally be realized, but with Flex. Flex achieves what previous technologies such as Java applets failed miserably in attempting: applications that feel like desktop applications, but which run inside any modern web browser on Windows and Mac.
Listing 3.7. app\controllers\application.rb
# Filters added to this controller apply to all controllers in # the application. Likewise, all the methods added will be # available for all controllers. class ApplicationController < ActionController::Base helper :all # include all helpers, all the time include AuthenticatedSystem # See ActionController::RequestForgeryProtection for details # Uncomment the :secret if you're not using the cookie session # store # TODO - this will be uncommented once we explain sessions # in iteration 5. # protect_from_forgery # :secret => 'dd92c128b5358a710545b5e755694d57' end
Before we test, we suddenly realize that we’ve been so focused on creating things (tasks, projects, locations) in the course of building the application that we haven’t paid attention to what we should do when we delete them. Furthermore, to our horror, we realize that there is no way to delete a user at the moment—we have no support for it in the UserController or in the UI. Oops! Clearly, we should address these issues before declaring that we’re finished! Otherwise, we won’t be able to demo the app on the Internet without getting angry “I can’t delete my account” emails. This won’t do.