# terminal
script/server -u
# /some/view.erb
<% debugger %>
# open the url associated with that view, and switch over to the terminal to play with ActionController methods and objects
(rdb:2) request
def name_copy(model)
'<script type="text/javascript" charset="utf-8">
var n = $("input#' + model + '_name");
var t = $("input#' + model + '_title");
var st = $("input#' + model + '_seo_title");
var su = $("input#' + model + '_seo_url");
n.blur(function(){
if(t.val()==0){
t.val(n.val());
};
if(st.val()==0){
st.val(n.val());
};
if(su.val()==0){
su.val(n.val());
};
});
</script>'
end