infovore + rails   188

Slicing up Rails Application.js for Faster Load Times
A nice pattern for breaking out code that might only be specific to certain pages.
rails  javascript  performance 
4 weeks ago by infovore
jamis/bulk_insert
This was a good alternative to activerecord-import for me, so noting it down.
activerecord  gems  ruby  rails  jamisbuck 
january 2016 by infovore
Administrate (documentation)
Thoughtbot's engine for Rails admin UIs, sans-DSLs. Filed away for reference.
rails  ruby  rubyonrails  development  programming  thoughtbot  admin 
november 2015 by infovore
Rails, Nginx, and X-Accel-Mapping • AirBlade Software
I think this is the issue I'm running into; Nginx is a bit of a mystery to me, and this is proving useful.
rails  ruby  nginx  xsendfile 
august 2015 by infovore
Rails Token Based Authentication
Saved for the fact it has notes on making Rails' token based authentication play ball with spitting back the correct MIME type.
rails  api  token  authentication  http  mimetype 
june 2015 by infovore
Our experience with Pundit | CookiesHQ
Nice example of real-world examples of using Pundit, including testing.
rails  ruby  pundit  authorization  programming 
march 2015 by infovore
» Testing Pundit Policies with RSpec
Good points; I really like the custom matchers. I always come to RSpec feeling like i've forgotten something, *again*.
rails  rspec  ruby  pundit  authorization 
march 2015 by infovore
Generating and Streaming Potentially Large CSV files using Ruby on Rails - Sohan's Blog
The most useful tips in here: set the right headers; set the body of the response to an enumerator and it'll iterate over it, streaming it.
csv  streaming  rails  ruby 
september 2014 by infovore
Deliver Email With Amazon SES In A Rails app
Good to know SES can just be integrated as an ActionMailer delivery method.
aws  ses  rails  email 
august 2014 by infovore
The Exhaustive Guide to Rails Time Zones - Alexander Danilenko
This was clear and straightforward. Everything stored as UTC, everything in local within the app.
rails  ruby  time  timezones 
august 2014 by infovore
A Beginner's Life - Setting Up HTML Emails in Rails
Seems like a reasonable set of tools to help out with this.
email  rails  htmlemail 
june 2014 by infovore
FetLife/rollout
Rather nice looking Ruby/Redis feature-flag library.
rails  ruby  redis  featureflag  development  programming 
march 2014 by infovore
GeoRails | Daniel Azuma
Daniel Azuma's posts in his "georails" category are really good.
rails  geodata  postgis 
december 2013 by infovore
brentd/xray-rails · GitHub
"Xray is the missing link between the browser and your app code. Press cmd+shift+x (Mac) or ctrl+shift+x to reveal an overlay of what files are powering your UI - click anything to open the associated file in your editor." A lifesaver, if only for working with other people's code.
rails  views  tools  gem 
may 2013 by infovore
#368 MiniProfiler - RailsCasts
"MiniProfiler allows you to see the speed of a request conveniently on the page. It also shows the SQL queries performed and allows you to profile a specific block of code." Ooh, been looking for the latest version of something like this for a while.
performance  rails  ruby  profiling 
april 2013 by infovore
ActiveAdmin with Existing Devise Authentication –
Because AA uses Devise, this is pretty straightforward, but still: I found this guide hepful.
rails  ruby  activeadmin  authentication 
april 2013 by infovore
mhfs/devise-async · GitHub
"Devise Async provides an easy way to configure Devise to send its emails asynchronously using your preferred queuing backend." Jolly good.
mail  queue  rails 
march 2013 by infovore
7 Patterns to Refactor Fat ActiveRecord Models - Code Climate Blog
via @aanand, and because I forgot to bookmark this when I read it the first time. Good, straightforward points.
activerecord  rails  ruby  refactoring  software  development 
november 2012 by infovore
mperham/sidekiq · GitHub
A Redis-based queueing system for ruby; much more efficient than Resque, from the looks of things, and really nice deployment configuration (ie: someone's bothered to write cap recipes and similar). Definitely going into the toolbelt, I think.
rails  ruby  queue  asynchronous  redis 
october 2012 by infovore
flyerhzm/bullet
"The Bullet gem is designed to help you increase your application’s performance by reducing the number of queries it makes. It will watch your queries while you develop your application and notify you when you should add eager loading (N+1 queries), when you’re using eager loading that isn’t necessary and when you should use counter cache."
activerecord  optimization  performance  rails  ruby 
august 2012 by infovore
thoughtbot workshops | vim for rails
"I spend every day writing Rails code in vim, and I’ve optimized the heck out that process. The screencast contains the best of what I’ve learned for creating and editing Rails code at top-speed. Come look over my shoulder and I’ll show you my best stuff." Might give this a pop at some point.
screencast  vim  rails  development  tools  editors  thoughtbot 
january 2012 by infovore
njonsson/cape - GitHub
Cape solves a surprisingly common problem: I have this big bunch of rake tasks; I'd like them to run on the server, which tends to mean writing cap tasks just to run the rake tasks. Cape makes it easy to just mirror them.
capistrano  rails  rake  ruby 
november 2011 by infovore
100hz/rails-settings - GitHub
I've used the Settings plugin a lot, but it's very old and dusty. This is a nice fork of it, ported to Rails 3, and saved for future reference.
rails  gem  settings  programming  plugin 
october 2011 by infovore
Custom formats for DateTime — giant robots smashing into other giant robots
Oh, nice; I'm always adding #format_date and #format_time methods to my formatting_helper.rb striaght off the bat, so it's nice to know there are built-ins - although I'm not keen on just overriding defaults, if only so other programmers don't get lost working out why the defaults aren't the same.
formatting  datetime  programming  rails 
august 2011 by infovore
Speed up file downloads with Rails, Apache and X-Sendfile - makandra notes
Don't forget to enable XSendFile for the Vhost in question. Like I did, and wondered why 0b files were coming down all the time.
apache  xsendfile  rubyonrails  rails 
august 2011 by infovore
Deploying with Bundler and Capistrano
Useful notes on the modern way of deploying Rails applications with Bundler and Capistrano.
rails  capistrano  bundler  ruby  deployment 
june 2011 by infovore
Pow: Zero-configuration Rack server for Mac OS X
Node.js/CoffeeScript powered Rack server. Lovely idea, simple configuration; shame it completely takes over port 80. Some of us write applications in things other than Ruby from time to time. Thinking about the best way of hooking it all together.
rack  rails  ruby  webserver 
april 2011 by infovore
Rails Dispatch | Presented by Engine Yard
Engine Yard have a new blog about Rails, consisting of screencasts and tutorials, and it looks good. One to subscribe to.
ruby  rails  rails3  rubyonrails  programming  engineyard 
may 2010 by infovore
litany against fear ¤ by nick quaranto ¤ The Rails Module (in Rails 3)
"Better alternatives [to the RAILS_ constants] have existed for a while in Rails core (some since 2.1.0), and it’s about damn time you start using them properly. There’s also some other helpful methods on the Rails module we’ll explore in this post." That was handy.
rails  rubyonrails  rails3  programming  development  tips 
february 2010 by infovore
has_many :bugs, :through => :rails: Active Record Query Interface 3.0
ARel looks brilliant, but blimey, those are some *big* changes to ActiveRecord. Pratik's post here is probably the most comprehensive I've seen, and well worth your time.
activerecord  arel  rails3  rails  ruby 
february 2010 by infovore
Rails 3 Reading Material | Medium eXposure
Great round-up of all the stuff out there about Rails 3. If you're as behind as I am on preparing for this, there's some really good stuff here; nice to have it all in one place.
ruby  rails  rails3  documentation  tutorials 
february 2010 by infovore
Ryan's Scraps: What's New in Edge Rails: Default Scoping
"It’s pretty common to want SQL queries against a particular table to always be sorted the same way, and is one of the reasons why I added the ordered scope to the utility scopes gem... Well now you can specify default ordering, and other scopes, in edge rails directly in your ActiveRecord model." Hurrah!
rails  scoping  activerecord  ruby 
november 2009 by infovore
Ryan's Scraps: What's New in Edge Rails: Dynamic Scope Methods
"With the recent addition of dynamic scopes, however, you now have a way to both quickly specify query logic and chain further conditions. The naming works in the same manner as dynamic finders and the chaining works in the same fashion as conventional named scopes." Ooh. New in Rails 2.3, and passed me by a little.
rails  activerecord  ruby  scoping 
november 2009 by infovore
tobi's delayed_job at master - GitHub
"Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background." Extracted from Shopify, and looks very, very useful; filed away for another day.
rails  background  queue  ruby  plugin  delayedjob 
november 2009 by infovore
scraplab — Using Geoplanet Data in Ruby on Rails
"Noticings is possibly one of the first services to integrate the Yahoo Geoplanet Data deeply". Tom explains how we're using Geoplanet inside Rails. Really good stuff if you're interested in that geo malarkey
geoplanet  ruby  rails  noticings  woe  yahoo  geodata 
november 2009 by infovore
elevation's event_calendar at master - GitHub
"Easily show multiple, overlapping events across calendar days and rows." Which is hard, and it is nice to know someone else has done the work.
rails  plugin  rubyonrails  development  ui  calendar 
november 2009 by infovore
Riding Rails: Upgrading to Snow Leopard
A good list of tips - lots of compiled stuff needs to be recompiled to x64, and this will be confusing. I am not upgrading quite yet.
ruby  rails  mac  osx  mysql  snowleopard  upgrade  tips 
august 2009 by infovore
Giles Bowkett: Gay People, Come To Rails
"Get over your ridiculous programming-language prejudices and stop endorsing real prejudices. It's this crazy little microcosm/macrocosm mirror effect. You never find bigotry in people with options. It's true in programming and it's true in real life as well, and it looks as if it's true in both places at the same time and for the same people." Giles is right, and the idiots who reached for their retweet button are definitely wrong. Less of this, please.
ruby  programming  rails  homophobia  bigotry  perjorative  community 
may 2009 by infovore
Introducing the ProjectSearch Rails plugin: - (37signals)
Rails plugin for intelligently searching within your application. Not a bad idea; will probably end up using this at some point.
programming  ruby  development  rails  plugin  utility  search 
march 2009 by infovore
Building and Scaling a Startup on Rails: 12 Things We Learned the Hard Way - Axon Flux - A Ruby on Rails Blog
Some well-worn tales here, but also some good new ones, particularly when it comes to query-profiling and all forms of caching.
tips  ruby  performance  development  web  rails  scaling  deployment 
february 2009 by infovore
has_many :bugs, :through => :rails: Rails templates
"Templates are simple ruby files containing DSL for adding plugins/gems/initializers etc. to your freshly created Rails project." That looks very handy.
programming  ruby  generation  rails  templates 
february 2009 by infovore
rubyist's aasm at master - GitHub
AASM is "a library for adding finite state machines to Ruby classes. AASM started as the acts_as_state_machine plugin but has evolved into a more generic library that no longer targets only ActiveRecord models." And as a result, I might be using it a bit.
programming  ruby  gem  rails  plugin  statemachine 
february 2009 by infovore
Katz Got Your Tongue? » Rails and Merb Merge
"Today is a fairly momentous day in the history of Ruby web frameworks. You will probably find the news I’m about to share with you fairly shocking, but I will attempt to explain the situation." Yehuda Katz weighs in with a great, informative post.
programming  development  ruby  rails  rubyonrails  web  software  merb 
december 2008 by infovore
Riding Rails: Merb gets merged into Rails 3!
"Merb and Rails already share so much in terms of design and sensibility that joining forces seemed like the obvious way to go. All we needed was to sit down for a chat and hash it out, so we did just that." No, really. Not an April Fool. It sounds like the architecture changes that are going to be made are going to be a big win for Rails 3. Looking forward to it.
programming  development  ruby  rails  web  frameworks  merb 
december 2008 by infovore
Rails Metal: a micro-framework with the power of Rails: \m/
"Rails Metal is a thin wrapper around Rails’ new Rack middleware support." Which means you can process requests outside of ActionPack, which is useful for the odd performance boost in certain places. Interesting to see concerns separating out within Rails like this.
programming  rails  rubyonrails  ruby  rack  middleware 
december 2008 by infovore
faker
"Faker, a port of Data::Faker from Perl, is used to easily generate fake data: names, addresses, phone numbers, etc."
tool  testing  data  ruby  gem  programming  rails 
october 2008 by infovore
GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS
"The tests are the program. Without the tests, the program does not work. Tests are not something that should be left for the inexperienced; tests are the hard part."
programming  development  ruby  rails  rubyonrails  testing  thoughtbot 
october 2008 by infovore
Cody Fauser - Rails HTTP Status Code to Symbol Mapping
"Recently I had been wondering what the complete list of HTTP status code symbols was in Rails. Searching through Rails didn't yield any results for a symbol like :unprocessable_entity... Rails defines the symbol to status code mapping dynamically from the status message. The symbol used is an underscored version of the status message with no spaces." Quick list of clear textual shorthand for returning HTTP status.
rails  rubyonrails  http  statuscode  status  reference 
september 2008 by infovore
Simplify ActiveRecord Aggregates And Other Goodies Via named_scope : Locomotivation
"With a recent project, we really started utilizing extensions with named_scope which is very powerful and cleaned up our code considerably." Some really nice examples of using named_scope effectively.
named_scope  ruby  rails  rubyonrails  development  programming  tips 
august 2008 by infovore
Front page - APIdock
"APIdock is a web app that provides a rich and usable interface for searching, perusing and improving the documentation of projects that are included in the app." Handy.
api  reference  documentation  doc  ruby  rspec  rails 
august 2008 by infovore
Tableless models in Rails » code tunes
"If you’re developing an application in Ruby on Rails framework, there are many situations when you should consider using tableless models." Stub out the table, and you get the benefits of validations and typed attributes. Nifty.
rails  rubyonrails  ruby  activerecord 
august 2008 by infovore
Softies on Rails: Script/console tip for the lazy
"Yes, that's an underscore character in front of the .collect. In irb (and hence, script/console), an underscore is a kind of global variable that holds the last result." I did not know that. Useful!
rails  console  irb  ruby  programming 
july 2008 by infovore
James on Software: Introducing ActivePresenter: The presenter library you already know.
"ActivePresenter works just like an ActiveRecord model, except that it works with multiple models at the same time. Let me show you." Ooh - a Presenter class that doesn't seem like too much effort. Duly noted.
rails  rubyonrails  presenter  pattern  module  plugin 
july 2008 by infovore
:: GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS :: Little green friend
"As you may have guessed, we’ve solved these problems, and replaced the Exception Notifier in most of the apps we manage, with a homegrown solution called hoptoad." Gosh, the Thoughtbot guys really are on fire.
hoptoad  rails  exception  notification  error  tracking  metrics 
july 2008 by infovore
:: GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS :: Regulators!!! Mount up
"The general rule to take from this is “dont use modules to create namespaces in controllers that are also names of pre-existing constants from other class definitions”" Matt J with some useful tips for namespaced controllers. Also, Warren G.
controllers  programming  rails  rest  resources  thoughtbot 
july 2008 by infovore
RailRoad diagrams generator
"RailRoad is a class diagrams generator for Ruby on Rails applications." Much like MattB's original .dot generator, but perhaps a bit more advanced. Useful!
visualization  information  database  diagram  development  rubyonrails  ruby  rails 
may 2008 by infovore
ben.send :blog » Blog Archive » rspec plain text stories + webrat = chunky bacon!
"We can now deal with forms in the language of our stories, something that the customer understands and relates to." Webrat lets you navigate your Rails app through the DOM, rather than HTTP.
testing  rspec  stories  agile  rails  ruby  rubyonrails  webrat  storyrunner 
april 2008 by infovore
//dopefreshtightblog » masquerade - Rails-based OpenID Server
"masquerade - an OpenID server based on Ruby on Rails." Server, not client-library. Looks quite nifty, and well worth knowing this is out there.
openid  server  ruby  rails  rubyonrails  identity  development  programming 
april 2008 by infovore
FixtureReplacement
"FixtureReplacement is a Rails plugin that provides a simple way to quickly populate your test database with model objects without having to manage multiple, brittle fixture files." Looks very handy indeed.
rails  testing  database  fixtures  plugin  ruby  rubyonrails 
april 2008 by infovore
Ryan's Scraps: What's New in Edge Rails: Has Finder Functionality
"It looks like Nick Kallen’s wildly popular has_finder plugin will be making its way into Rails 2.x in the form of named_scope" This is excellent news.
rails  rubyonrails  features  finders  activerecord 
april 2008 by infovore
:: GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS :: For attaching files, use Paperclip
"I went and wrote Paperclip on the plane to RailsConf last year. We’ve been using it here in various forms since and IMHO it’s *the* way to handle uploads, and finally decided that it should be released." Another handy Thoughtbot plugin.
thoughtbot  rails  rubyonrails  plugin  attachment  imagemagick  upload  fileupload  file 
march 2008 by infovore
SwitchPipe - Process Manager and Proxy for Rapid Web App Deployment
"SwitchPipe is a proof of concept "Web application server" or, more accurately, a Web application process manager and request proxy." Wow. Peter Cooper comes good on his "RBoss" concept. Could be interesting to see if there's mileage in this.
ruby  python  webapplication  hosting  deployment  web  server  rails  django 
february 2008 by infovore
RoundHaus
Hosted subversion and continuous integration specifically for Rails development. Looks interesting; reasonably competitive pricing.
rails  rubyonrails  subversion  hosting  testing  continuousintegration 
january 2008 by infovore
The jSkinny on jQuery — err.the_blog
"Something to note: as of writing (1.2.2), jQuery doesn’t play nicely with Rails’ respond_to. But, hold the phone, it’s okay: a simple fix." Neat fix. And good to see people working in a similar fashion to me: Rails, jQuery, write the JS by hand.
javascript  ruby  rails  jquery 
january 2008 by infovore
nick - HasFinder -- It's Now Easier than ever to create complex, re-usable SQL queries
How I've not seen has_finder before I don't know. Looks very handy, and nice and succinct, too.
rails  plugins  rubyonrails  activerecord  finder 
december 2007 by infovore
Declarative exception-handling in your controllers - Rails 2.0 a feature a day #2 - redemption in a blog
"...this feature is one of the few nicest features in Rails made by a contributor outside of the Rails core so I couldn’t resist mentioning it." More on #rescue_from, with some nice use cases.
rails  rubyonrails  ruby  exceptionhandling  exceptions 
december 2007 by infovore
almost effortless » Graceful 404s in Rails 2.0
An explanation of #rescue_from, which was added in Rails 2.0, and is a really rather lovely way of handling all kinds of custom exception and making them not suck.
rails  ruby  rubyonrails  routing  redirect 
december 2007 by infovore
evang.eli.st User stories with RSpec's Story Runner
"I'll show you an example of an integration test I wrote with Test::Unit a while back and then converted to use Story Runner earlier today." RSpec's Story Runner looks quite interesting.
rspec  ruby  testing  rails  rubyonrails  bdd 
december 2007 by infovore
RailsJitsu - Acts as Subscribeable Rails Plugin
Looks useful - a plugin to generate email updates about things within your domain model.
rails  rubyonrails  ruby  email  plugin  programming 
december 2007 by infovore
Juixe TechKnow » Top 11 Rails Plugins
"I [decided] to write a list of the top Ruby on Rails plugins that I have found useful." A decent-enough selection, with a few I hadn't seen before.
rails  rubyonrails  ruby  plugins  activerecord 
december 2007 by infovore
Getting the mysql gem installed on Ubuntu at brant interactive
"The problem is that you need the MySQL development headers in order to get the ruby gem to compile…sooo, you need to install this first."
ubuntu  ruby  rails  mysql 
december 2007 by infovore
BBC - Radio Labs - Radio Labs - Perl on Rails
"Like most organisations the BBC has its own technical ecosystem; the BBC's is pretty much restricted to Perl and static files." How depressing.
perl  ruby  rails  programming  development  bbc  constraints  ridiculous  depressing 
december 2007 by infovore
Named routes _path/_url helpers doesn't recognize option :anchor
Just ran into this myself this afternoon. Very annoying! Hope it's fixed soon.
rails  ruby  rubyonrails  bug  error  routing 
november 2007 by infovore
Environments and the Rails initialisation process
"Though most people understand that your environment files are the key to answering some of these problems, how to actually solve them is not well known. I’ll attempt to clarify what to use and when to use it."
rails  rubyonrails  ruby  environment  development 
november 2007 by infovore
Rails on the Run
"Ruby, Rails & Other Experimentations by Matt Aimonetti" Interesting looking rails-focused blog.
rubyonrails  ruby  rails  software  development  programming  blog 
october 2007 by infovore
Mailtrap
Mailtrap helps you test ActionMailer: "Yesterday I mocked up the simplest, dumbest, Ruby SMTP server you can imagine. It speaks just enough SMTP to allow ActionMailer to make a connection and send it a message."
rails  ruby  rubyonrails  mail  testing  smtp  email 
october 2007 by infovore
If you aren’t writing Matchers, you aren’t using RSpec » Grinding Rails
"The default RSpec syntax is good, but it can’t be everything to everyone. If you’re not writing matchers, you’re missing out on the full potential of RSpec."
rspec  bdd  rails  ruby  testing  rubyonrails 
october 2007 by infovore
Demeter's Revenge — Luke Redpath
"“Demeter’s Revenge” is a simple extension to ActiveRecord, written as a Rails plugin that creates a collection of Demeter-friendly methods for your has_many and has_and_belongs_to_many associations."
rails  plugin  lawofdemeter  proxy  association 
october 2007 by infovore
RubyWorks overview - ThoughtWorks Studios
"This free, open source LAMP production stack for RedHat Enterprise Edition, CentOS, Debian, and Ubuntu will allow users to quickly put Rails applications on production servers."
ruby  rubyonrails  rails  thoughtworks  deployment  linux  server  package 
october 2007 by infovore
« earlier      
per page:    204080120160

related tags

abstraction  activeadmin  activerecord  admin  agile  ajax  akismet  amazon  analysis  antispam  apache  api  architecture  arel  association  associations  asynchronous  atom  attachment  authentication  authorization  autotest  awk  aws  background  backup  bbc  bdd  bestpractice  bigotry  blocks  blog  bug  bundler  business  cache  caching  calendar  capistrano  cms  community  console  constraints  continuousintegration  controller  controllers  creditcard  crud  css  csv  data  database  date  datetime  debian  debugging  delayedjob  delegate  deployment  depressing  design  development  diagram  django  doc  documentation  dom  ecommerce  editor  editors  elasticbeanstalk  email  engine  engineyard  english  environment  erb  error  etags  exception  exceptionhandling  exceptions  fastcgi  fcgi  featureflag  features  file  fileupload  finder  finders  fixtures  formatting  frameworks  free  frontier  functional  gem  gems  generation  geo  geocoding  geodata  geoplanet  growl  guidelines  helpers  homophobia  hoptoad  hosting  howto  html  htmlemail  http  ide  identity  image  imagemagick  information  infrastructure  interaction  interface  irb  jamisbuck  java  javascript  jquery  js  language  lawofdemeter  learning  library  lighttpd  linux  lowpro  lucene  mac  mail  maps  markup  memory  merb  metaprogramming  metrics  microformats  middleware  migrations  mimetype  mocha  mock  module  mongrel  mvc  mysql  named_scope  netbeans  network  nginx  noticings  notification  openid  optimisation  optimization  osx  package  pagination  pattern  patterns  payment  paypal  performance  perjorative  perl  plugin  plugins  postgis  presenter  processing  profiling  programming  prototype  protoype  proxy  pundit  python  queue  rack  rails  rails3  rake  rakefile  redirect  redis  refactoring  reference  resources  rest  ridiculous  routing  rspec  rub  ruby  rubyonrailes  rubyonrails  s3  scaling  scm  scope  scoping  screencast  screencasts  search  security  sed  seo  server  ses  sessions  settings  shell  simple  smtp  snowleopard  software  spam  sql  sqlite  statemachine  status  statuscode  stories  storyrunner  streaming  subversion  svn  tagging  tags  tdd  template  templates  templating  testing  testspec  textdrive  textmate  thoughtbot  thoughtworks  time  timezones  tip  tips  token  tool  tools  tracking  training  tutorial  tutorials  ubuntu  ui  unicode  unix  upgrade  upload  urls  utf8  utility  validation  versioncontrol  views  vim  visualization  w3c  web  webapplication  webdev  webdevelopment  webrat  webserver  woe  xhtml  xml  xsendfile  yahoo 

Copy this bookmark:



description:


tags: