This works for .html.erb files:
<% begin %>
<% if current_user.is_super_admin? %>
<p> this block will be commented out</p>
<% end %>
<% end %>
‘causing a section to not be rendered’ , you would want to do <% if false %> .. <% end %>
Tags:
comments,
erb,
rails,
ruby on rails
1 Comment »
I was attempting to clone a github repo on a Slicehost account and received the error below. Its possible that github.com recently updated DNS so if this happens to you then you can use the temporary fix I located on github’s twitter account.
Error:fatal: Unable to look up github.com (port 9418) (Name or service not known)
This error was caused by attempting to clone edavis10′s redmine repo using the command below.
git clone git://github.com/edavis10/redmine.git
Read the rest of this entry »
Tags:
9418,
clone,
DNS,
github,
github.com,
hosts,
Linux,
repo,
repository,
slicehost
12 Comments »