conversation of the cutting-edge techs
link to subscribe feed
#Model | |
@user.should have(1).error_on(:username) # Checks whether there is an error in username | |
@user.errors[:username].should include("can't be blank") # check for the error message | |
#Rendering | |
response.should render_template(:index) | |
#Redirecting | |
response.should redirect_to(movies_path) |
import sublime | |
import sublime_plugin | |
import subprocess | |
import re | |
import os | |
import tempfile | |
# RUBY_METHOD_SEP_PATTERN = re.compile('[^.:]*$') | |
RUBY_METHOD_SEP_PATTERN = re.compile('((?<=\.).*$)|((?<=::).*$)') |
conversation of the cutting-edge techs
link to subscribe feed