The Art and Science of Ruby

Level up your Ruby career

  • Home
  • About
  • Contact
  • Company

Posts Tagged → urls

How can I give my app meaningful URLs?

posted in Routing on June 26, 2015 by Rahoul Baruah 1 Comment

Back in the dark mists of time, when dinosaurs ruled the earth and Rails had a rival framework known as Merb (I’m showing my age now), a concept known as Restful Routing was introduced. (By the way, I’m English, so I pronounce it as “root”, not “rowt”). The idea was simple – the web is… Continue reading →

Free 5-part course about Rails views

Prevent SQL Injection attacks and 8 other security pitfalls

Sign up to get my guide and weekly tips on writing better, more secure Ruby code.

No spam, we promise

Recent articles

  • Hiring a Developer
  • Assets not loading on Elastic Beanstalk in Safari
  • Why is it called MVC?
  • Is ActiveJob the best way to call external APIs – and how do I show the results in the UI?
  • You know your problem? You do too much…
  • “Belongs To” and “Has One” – aren’t they the same thing?
  • Confused about “has_and_belongs_to_many”? Here’s what it looks like in the database…
  • Confused about “has_many through” associations? Here’s what they look like in the database…
  • What does a “has many” association look like in the database?
  • What exactly is going on with the data in my Rails models?

Trending

  • What's the difference between order and sort?
  • What is a join model? Or has_and_belongs_to_many versus has_many through
  • How do I get Active Record to exclude items in a query?
  • How do I encrypt data in my database?
  • Multiple models in a single form
  • Where is the correct place to validate input parameters?
  • The problem with ActiveRecord
  • What is schema.rb for?
  • What does "bundle exec" mean?
  • "Belongs To" and "Has One" - aren't they the same thing?

Categories

  • Active Job
  • Active Record
  • API
  • Beautiful Code
  • Bundler
  • Business
  • Configuration
  • CSS
  • Database
  • Deployment
  • Estimating
  • Javascript
  • Jobs
  • Project Management
  • Routing
  • Ruby
  • Ruby on Rails
  • Security
  • SQL
  • Testing
  • Views
(c) 2015 Echo Dek Ltd; Registered in England and Wales with Company No. 6368835; 45 Boroughgate, Otley, LS21