<%= form_for(:new,:url=>{:action=>:create}) do |f| %>
<%= f.file_field :myimg,:name=>"myimg",:class=>"file" %>
<% end %>
<% @img="https://school.oohara.jp/shimoda/kani.png" if(@post.img ==nil) else @img="/img/"+@post.img end %>

画像を変更する

アカウント名

画像を変更する

お気に入り

通知

<% @count=0 require "base64" @noti.each {|item| if(@count > 1) @hide=" hide-text" else @hide="" end %> <% @count=@count+1 } %>

過去の投稿

<% @count=0 @conimp.each{|con| if(@count > 2) @hide2="hide-text2" else @hide="" end %>
<%=@post.account_name %>
<% if(con["sec"].to_i == 1) @a="考察" else @a= "感想" end %> <%= @a %>

<%= con["comment"] %>

いいね!<%= con["iine"] %>
<% @count=@count+1 } %>