charliepark + rubyonrails   121

Beyond Active Record merge - The Pug Automatic
Using Active Record's "merge" method to chain scoped models without unnecessary coupling.
ifttt-reading-front-end  ruby  rubyonrails 
may 2014 by charliepark
What's new in Active Record [Rails 4 Countdown to 2013] | The Remarkable Labs Blog
A few notable updates, like this one:
# find_or_create_by_
Rails 3: Team.find_or_create_by_name('Justice League')
Rails 4: Team.where(name: 'Justice League').first_or_create
rails  activerecord  rails4  rubyonrails 
december 2012 by charliepark
Rethinking caching in web apps — Martin Kleppmann’s blog
Note the first comment. I like him a lot: Couldn't it be even simpler? If we think of web apps as software that serves resources, then pre-computed caching those resources in whole is almost always the right answer. Our current architecture of request --> hit a database --> render with a layout --> response is nuts. The architecture should be much simpler: given a request, look up the response and serve it.

The response can be pre-computed in the vast majority of use cases, because as you mentioned, almost everything a web app does is deterministic. Meaning these computations should only be happening once and only once. A blog post only needs to be computed when an edit is made, or a new comment is added. A Twitter-style timeline only needs to be computed when someone a user follows posts a new entry. A profile page only needs to be computed when the owner updates it.
caching  scalability  nymsy  database  rails  rubyonrails 
october 2012 by charliepark
Why Rails and not Sinatra or Node.js? -
A really good overview of why to use Rails in lieu of Sinatra, even though Sinatra is a lot more straightforward.

Would be nice if there were a "secure" port of Sinatra that brings all of the security and optimizations in, but maintained the simplicity of Sinatra. Maybe that's what the custom Rails builds are for?
ruby  sinatra  rails  rubyonrails 
september 2012 by charliepark
Heroku | Dev Center | Memcache
How to set up Dalli to run memcached on Sinatra.
memcached  dalli  sinatra  rails  rubyonrails  gems 
july 2011 by charliepark
RubyGems 1.5
The page that explains the broken Rubygems.
rubygems  rails  rubyonrails  from delicious
may 2011 by charliepark
undefined local variable or method `version_requirements’ for # (NameError) | Chris Oliver
If I ever have to restart WalletGarden, I'll need to revert RubyGems back to 1.4.2 or add this code in to envoronment.rb.
rubygems  rails  rubyonrails  broken  from delicious
may 2011 by charliepark
Add new resource with ajax
Extends Railscasts 258 by adding a new resource, on top of an auto-complete AJAX list.
rails  rubyonrails  rails3  ajax  from delicious
april 2011 by charliepark
harvesthq's simple_xlsx_writer at master - GitHub
A gem to write Excel files ... useful as it can produce multiple worksheets!
excel  ruby  rubyonrails  spreadsheet  export  pearbudget 
september 2010 by charliepark
An "Experiment Driven Development" framework for Rails. A/B testing within Rails.
rails  rubyonrails  ab_testing  testing 
november 2009 by charliepark
Tomash corner / Rails Tricks, part 1: Searchlogic
Next time I need a search form in an app, I'll need to revisit this post.
searchlogic  search  rails  rubyonrails 
october 2009 by charliepark
Rails authenticity token with jQuery – The Pug Automatic
Don't need this at the moment, but I imagine I'll need this technique immediately after I forget where I saw it.
rails  jquery  rubyonrails  authenicity_token 
september 2009 by charliepark
Using Wordpress and Rails on the Same Domain: MicroISV on a Shoestring
Good tutorial on how to set up a blog on a domain that's already hosting a Rails app.
wordpress  rails  rubyonrails 
september 2009 by charliepark - Ruby Screencasts and Videos for Ruby People
This looks like it could be an excellent resource. Ruby and Rails screencasts.
ruby  rubyonrails  screencast  tutorials 
june 2009 by charliepark
Plaxo » A Recipe for OpenID-Enabling Your Site
A walk-through of how to implement OpenID on a web application.
openid  authentication  rails  rubyonrails 
january 2009 by charliepark
Rails, Ajax and jQuery at code tunes
A post on incorporating jQuery with Rails, but without using jRuby.
rails  rubyonrails  jquery  javascript  ajax 
december 2008 by charliepark
Jason J. Tennier, Super Genius: Removing Local Gems in Mac OS X
A blog post about where to find local gems in OSX. I'm still having trouble removing a couple of pre-1.0 gem releases, and that's messing up the rest of everything. Bah.
rails  rubyonrails  gems  apple  mac  osx 
december 2008 by charliepark
matthooks's authlogic-activation-tutorial at master — GitHub
A tutorial for setting up authlogic using e-mail and OpenID and some other goodies. Uses Git as the hosting of the tutorial, which is kind of neat.
rails  authentication  authlogic  tutorial  rubyonrails 
december 2008 by charliepark
has_many :bugs, :through => :rails: Rails templates
I am *SO* excited about Rails templates. Good Lord, this will make things easier.
rails  rubyonrails  templates 
december 2008 by charliepark
Pony - simple e-mail in Ruby apps
This looks cool. A simple way to send e-mail. I'll probably still have no idea what to do with it.

Pony.mail(:to => '', :from => '', :subject => 'hi', :body => 'Hello there.')
rails  ruby  rubyonrails  e-mail 
november 2008 by charliepark
Forcing Users To Log In (Ruby on Rails) | Building Browsergames
Setting up a simple admin controller to restrict access.

class AdminController < ApplicationController
def index


# By adding a function named "authorized?" and performing a test in it
# we use one of the hooks provided by restful_authentication.
def authorized?
current_user.login == "Admin"
ihavenoideawhatiamdoing  rails  ruby  rubyonrails 
october 2008 by charliepark
JulioCapote - Highlight link based on current page in rails
An easy way to change the style of the current (active) page. Like ... making the current page bold in the navigation list.
rails  rubyonrails 
september 2008 by charliepark
Rail Spikes: Is your Rails application safe?
You'd hope any dangerous security flaws would be covered by core. Nevertheless ... something to check out.
rubyonrails  rails  security 
september 2008 by charliepark
Smarticus — Increasing your testing vocabulary
A good overview of testing and how language matters. Sapir-Whorf and all that.
testing  ruby  rubyonrails  ihavenoideawhatiamdoing 
september 2008 by charliepark
Obie Fernandez - Do the Hustle
Obie Fernandez on the feed and care of a Rails startup.
rails  business  rubyonrails  workshop  screencast  tutorial 
september 2008 by charliepark
Lightning Talk: God Monitoring Tool
PJ Davis at the 2008 Ruby Hoedown, giving a talk on God as a monitoring tool for your servers.
ihavenoideawhatiamdoing  rails  rubyonrails  god  monitoring  workshop  tutorial  screencast 
september 2008 by charliepark
$ cheat git
A quick writeup with the various commands for Git.
git  rails  rubyonrails  cheatsheet 
september 2008 by charliepark
Automatic input focus | Lambda @ Copa
Using jQuery to focus on the first input. Should implement in PearBudget to focus on the Date field (or would that auto-select the calendar?).
webdevelopment  ajax  js  javascript  rails  rubyonrails 
september 2008 by charliepark
Unobtrusive jQuery + Rails | Lambda @ Copa
Potentially useful, in case jQuery yield authenticity token problems in Rails.
rails  rubyonrails  javascript  jquery 
september 2008 by charliepark
Announcers: A layer between the controller and rendering | Atomic Spin
I'm not sure if I'll ever need this, but I suspect that I might:

So we came up with the idea of moving all the presentation related logic out of the controller and into helper objects we call announcers. The purpose of an announcer is to make the actual rendering calls, based on state that is passed to it by the controller.

The controller actions in most cases become two lines of code. Perform the action (create, destroy, etc.) and then tell the announcer what happened with the results. It is left to the announcer to decide what rendering should result.
rubyonrails  rails  ajax  rjs  announcers 
september 2008 by charliepark
Exception Notifier Plugin for Rails
The Exception Notifier plugin provides a mailer object and a default set of
templates for sending email notifications when errors occur in a Rails
rails  rubyonrails 
august 2008 by charliepark
missing sourcefile (no such file to load)-- squlite3 error - Ruby Forum
If only all programming tech support was this helpful. It's line-by-line perfect, and works like a charm.
windows  ruby  sqlite  rails  rubyonrails 
august 2008 by charliepark
4 Simple Steps to Detect & Fix Slow Rails Requests
A quick write-up on fixing undererforming Rails apps.
rails  ruby  rubyonrails 
august 2008 by charliepark » Blog Archive » Sending SMTP E-mails With Ruby on Rails
Getting e-mails to work via the cron job on MediaTemple has turned out to be pretty difficult / obstructive. Hopefully this can help.
rails  rubyonrails  smtp  mediatemple  cron  cronjob  e-mail 
april 2008 by charliepark
How To Use Drag And Drop Sorting in Ruby on Rails
If you set the CSS display: to "table" and "table-row" and "table-cell", you can use <ul>s and <li>s in your markup. You get the benefit of re-sortability, with the layout option of tables for tabular data. Seems a little hack-y, but good to know about.
draganddrop  javascript  rails  rubyonrails  sortable  ajax  tables  CSS  data 
april 2008 by charliepark
Using text_field_with_auto_complete & acts_as_taggable together
Short piece on how to integrate text_field_with_auto_complete and acts_as_taggable. As you'd expect, based on the title.
tags  ajax  autocomplete  rails  rubyonrails 
april 2008 by charliepark
Forms in Ruby on Rails - Part 1
Quick overview of forms. Note: form_for is for model data; form_tag is more general purpose.
rubyonrails  forms 
february 2008 by charliepark
xssterminate - Google Code
Useful for stripping HTML out of inputs. Rails plugin.
plugin  rubyonrails  security 
january 2008 by charliepark
« earlier      
per page:    204080120160

related tags

ab_testing  activemerchant  activerecord  agile  ajax  analytics  announcers  apache  api  apple  article  authenicity_token  authentication  authlogic  authorization  autocomplete  basics  beginnger  berkeley  broken  business  caching  calendar  charts  cheatsheet  college  computerscience  conflict  cookies  course  creditcards  cron  cronjob  css  CSV  dalli  data  database  date  design  development  directory  documentation  draganddrop  dreamhost  DRY  dynamic  e-mail  encrypt  encryption  excel  exception_notification  export  forms  forum  for_wednesday  gems  git  god  graphing  graphs  howto  i18n  ifttt-reading-front-end  ihavenoideawhatiamdoing  importing  install  introduction  iphone  javascript  jquery  js  json  l10n  linux  lion  mac  mediatemple  memcached  methods  microformat  migration  migrations  monitoring  monotask  mysql  nymsy  openid  optimization  osx  pdf  pearbudget  phusionpassenger  picker  plugin  plugins  podcast  presentation  rails  rails3  rails3.1  rails4  readlater  redis  refactoring  reference  resources  rest  rjs  ruby  rubygems  rubyonrails  ruby_on_ales  rvm  scalability  screencast  search  searchlogic  security  server  setup  shortcuts  sinatra  SMS  smtp  sortable  spreadsheet  sql  sqlite  sysadmin  tables  tags  templates  testing  textmate  to_watch  tutorial  tutorials  twitter  Ubuntu  ui  university  unix  validity  video  videos  views  w3c  walletgarden  web2.0  webdev  webdevelopment  windows  wordpress  workshop  xhtml 

Copy this bookmark: