2018-10-30 17:09:13 +00:00
|
|
|
---
|
|
|
|
layout: main
|
2018-11-02 15:00:59 +00:00
|
|
|
author: Claudio Maggioni
|
2018-10-30 17:09:13 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
<section>
|
2018-10-31 14:17:13 +00:00
|
|
|
<h1>ls</h1>
|
2018-10-30 17:09:13 +00:00
|
|
|
|
2018-10-31 14:17:13 +00:00
|
|
|
<p>The ls command is used to list files</p>
|
2018-10-30 17:09:13 +00:00
|
|
|
|
2018-10-31 14:17:13 +00:00
|
|
|
<ul>
|
2018-11-02 15:00:59 +00:00
|
|
|
<li>Item 1</li>
|
|
|
|
<li>Item 2</li>
|
2018-10-31 14:17:13 +00:00
|
|
|
<li>Hello</li>
|
|
|
|
</ul>
|
2018-10-30 17:09:13 +00:00
|
|
|
|
2018-11-02 15:00:59 +00:00
|
|
|
{% 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 %}
|
|
|
|
|
2018-10-30 17:09:13 +00:00
|
|
|
</section>
|