2018-11-05 20:03:04 +00:00
|
|
|
---
|
|
|
|
layout: page
|
|
|
|
author: Joey Bevilacqua
|
|
|
|
title: CD
|
2018-11-08 08:06:13 +00:00
|
|
|
previous-page: pages/cmd/basic/ls.html
|
2018-11-05 20:03:04 +00:00
|
|
|
---
|
2018-11-08 08:06:13 +00:00
|
|
|
|
2018-11-05 20:03:04 +00:00
|
|
|
<p>The <code>cd</code> command is used to change directories</p>
|
|
|
|
<ul>
|
|
|
|
<li>Item 1</li>
|
|
|
|
<li>Item 2</li>
|
|
|
|
<li>Hello</li>
|
|
|
|
</ul>
|
|
|
|
{% highlight ruby linenos %}
|
|
|
|
def show
|
|
|
|
puts "Outputting a very lo-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-ong lo-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-ong line"
|
|
|
|
@widget = Widget(params[:id])
|
|
|
|
respond_to do |format|
|
|
|
|
format.html # show.html.erb
|
|
|
|
format.json { render json: @widget }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
{% endhighlight %}
|