RailsSpace: Building a Social Networking Website with Ruby on Rails (Addison-Wesley Professional Ruby Series)

By Michael Hartl

Ruby on Rails is speedy displacing Hypertext Preprocessor, ASP, and J2EE because the improvement framework of selection for discriminating programmers, because of its dependent layout and emphasis on sensible effects. RailsSpace teaches you to construct large-scale initiatives with Rails by way of constructing a real-world software: a social networking web site like MySpace, fb, or Friendster.

Inside, the authors stroll you step-by-step from the production of the site's almost static entrance web page, via consumer registration and authentication, and right into a hugely dynamic website, whole with person profiles, picture add, electronic mail, blogs, full-text and geographical seek, and a friendship request procedure. within the procedure, you learn the way Rails is helping you regulate code complexity with the model-view-controller (MVC) structure, abstraction layers, automatic checking out, and code refactoring, permitting you to scale as much as a wide undertaking inspite of a small variety of developers.

This crucial creation to Rails provides

  • A educational technique to be able to adventure Rails because it is admittedly used
  • A good beginning for developing any login-based site in Rails
  • Coverage of more recent and extra complicated Rails gains, resembling shape turbines, leisure, and Ajax (including RJS)
  • A thorough and built-in advent to automatic testing

The book's spouse web site offers the appliance resource code, a weblog with follow-up articles, narrated screencasts, and a operating model of the RailSpace social network.

Show description

Quick preview of RailsSpace: Building a Social Networking Website with Ruby on Rails (Addison-Wesley Professional Ruby Series) PDF

Similar Programming books

The Basics of Web Hacking: Tools and Techniques to Attack the Web

The fundamentals of net Hacking introduces you to a tool-driven approach to spot the main common vulnerabilities in internet purposes. No past event is required. internet apps are a "path of least resistance" that may be exploited to reason the main harm to a approach, with the bottom hurdles to beat.

Programming in Objective-C (6th Edition) (Developer's Library)

Up to date for OS X 10. nine Mavericks, iOS 7, and Xcode five Programming in Objective-C is a concise, rigorously written instructional at the fundamentals of Objective-C and object-oriented programming for Apple's iOS and OS X systems. The ebook makes no assumptions approximately earlier adventure with object-oriented programming languages or with the c programming language (which Objective-C is predicated upon).

Lisp in Small Pieces

This can be a finished account of the semantics and the implementation of the entire Lisp kin of languages, specifically Lisp, Scheme and comparable dialects. It describes eleven interpreters and a pair of compilers, together with very fresh options of interpretation and compilation. The ebook is in elements. the 1st begins from an easy overview functionality and enriches it with a number of identify areas, continuations and side-effects with commented editions, whereas even as the language used to outline those gains is decreased to an easy lambda-calculus.

An Introduction to Programming Using Alice 2.2

AN advent TO PROGRAMMING utilizing ALICE 2. 2, moment version, offers scholars with a superb advent to recommendations of programming, good judgment, and comparable arithmetic by using Alice, a confirmed software for motivating starting programmers. This new version has been absolutely up-to-date to use the recent motion picture making, digital fact, and gaming functions of Alice 2.

Additional resources for RailsSpace: Building a Social Networking Website with Ruby on Rails (Addison-Wesley Professional Ruby Series)

Show sample text content

Three. 2 up to date logout try 209 complicated assessments: Integration trying out 209 7. four. 1 checking out cookie remembering: the 1st minimize 7. four. 2 trying out the attempt: A cautionary story 212 7. four. three a few reflections on Rails trying out 214 Refactoring redux 215 7. five. 1 Refactoring have in mind 216 7. five. 2 Refactoring omit 218 7. five. three simply extra bits of polish 219 7. five. four The absolutely refactored login functionality 222 7. five. five a few parting techniques 223 bankruptcy eight eight. 1 eight. 2 eight. three eight. four complicated login 181 Updating consumer info 225 A non-stub hub 226 Updating the e-mail deal with 226 Updating password 229 eight.

Aid web page. . . . . . . . . . . . . . . . . . . . . . . . . A navigation bar now seems on the most sensible of every web page. . . The impact of utilizing the link_to_unless_current. . . . the most web page with CSS outlined. . . . . . . . . . . . . The approximately web page with CSS outlined. . . . . . . . . . . . . the assistance web page with CSS outlined. . . . . . . . . . . . . . clients schema as displayed via CocoaMySQL. . . . . . . . Registration web page. . . . . . . . . . . . . . . . . . . . . . A extra fashionable registration web page. . . . . . . . . . . . . . Registration web page after submission with foo, bar, and baz within the 3 fields. . . . . . . . . . . . . . . . .

412 . . . 413 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422 425 425 431 434 440 448 461 463 464 466 466 468 471 485 . . . 490 . . . 492 . . . 494 . . . 498 . . . 508 . . . 514 . . . 514 . . . 514 Acknowledgments because of Debra Williams Cauley for shepherding us during the publishing procedure. we might additionally prefer to thank our technical reviewers, Francis Hwang and Michael Vanier, for his or her cautious analyzing and reviews. xxi This web page deliberately left clean C HAPTER 1 creation RailsSpace teaches you Ruby on Rails via constructing a real-world software: RailsSpace, a social networking site aimed toward the Rails group itself.

Browse shape with a pleasant description of the mistakes. . . . . . . . . the ultimate neighborhood web page with index, browse, and seek. . . . . The preliminary avatar add web page. . . . . . . . . . . . . . . . . . . The person hub with a hyperlink to avatar add. . . . . . . . . . . . . shopping for an avatar photograph. . . . . . . . . . . . . . . . . . . . The consumer hub after a profitable avatar add. . . . . . . . . . . . the mistake message for an invalid picture sort. . . . . . . . . . . . Confirming avatar deletion with JavaScript. . . . . . . . . . . . The login web page with display name/password reminder. . . . . . . the e-mail reminder shape.

That method, we will be able to stick with the expansion and task of our website club. fortunately, Rails makes it effortless so as to add such attributes utilizing magic columns. We’ve already made the fundamental consumer version, in an effort to retain song of person production and replace, we need to upload a few columns to the present version. In precept, lets use any names for those columns, yet we wish to benefit from the magic columns created_at and updated_at. If we make columns with those names and affiliate them with the SQL datetime style, Rails will instantly fill them with the present date and time while a person is created (Section four.

Download PDF sample

Rated 4.38 of 5 – based on 32 votes