Ruby on Rails Wednesday, October 12, 2016

this code:
<h1>Artikel#index</h1>

<% if @save.blank? %>
  <p>data nothing</p>
<br>
<%= link_to "Make new", artikel_new_path %>
<% else %>

<table border="1px">
 <tr>
  <td width="80px">Title</td>
  <td width="100px">Isi</td>
  <td width="50px">Desc</td>
  </tr>

<%= @save.each do |ss| %>
  <tr>
  <td><%= ss.title %></td>
  <td><%= ss.isi %></td>
  <td><%= link_to "Desc", {:action => "show",:id => ss.id} %></td>
  </tr>
<% end %>
</table>
<br><br>
<% end %>
  
<%= link_to "Make new", artikel_new_path %>



Pada Rabu, 12 Oktober 2016 20.26.35 UTC+7, Colin Law menulis:
On 12 October 2016 at 01:53, kinoe - <kin...@gmail.com> wrote:

I am sorry for my langguage. this above screenshot: what is wrong. I can't using 'rails g scaffold'. thanks.Colin Law


Please copy/paste your index.html.erb file here.  That is the file that generates the html for the page.

Colin
 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9bdada16-bba2-4cf1-a6ba-1e15cf41eff8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment