[Rails] Re: application error

2016-11-01 Thread kinoe -
i was got secret key base production on local and not error. but seems it gem added bootstrap and etc not function,how? 2.to heroku.am i must repeat it again. -push -... -... -add secret key base that get dashboard heroku to secrets.rb -- You received this message because you are subscribed to

[Rails] Re: application error

2016-10-31 Thread kinoe -
run rails -e production error like this: Internal Server Error Missing `secret_key_base` for 'production' environment, set this value in `config/secrets.yml` Pada Senin, 31 Oktober 2016 15.54.06 UTC+7, Chirag Jain menulis: > > Try to launch your app locally in production mode -- You

[Rails] application error

2016-10-30 Thread kinoe -
how deploy to heroku,i was make app with db postgresql(3 tabels) on local. 1.push (succes) 2.heroku run rake db:migrate (succes) 3.i click 'open app' on dashboard

Re: [Rails] data no same.

2016-10-16 Thread kinoe -
try show me versi your code rails what your suggest. i was tried but failed. -- 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

Re: [Rails] data no same.

2016-10-16 Thread kinoe -
I'm assuming you want if @admin.save then a render or redirect afterwards. #correct,i assuming here i want input data to db with defference name. #means:if i have field name with value "cow" on db, i not want not have two "cow" name on table Box,because that i use @n as checker,are there name

Re: [Rails] data no same.

2016-10-16 Thread kinoe -
I'm assuming you want if @admin.save then a render or redirect afterwards. #correct,i assuming here i want input data to db with defference name. #means:if i have field name with value "cow" on db, i not want not have two "cow" name on table Box,because that i use @n as checker,are there name

Re: [Rails] data no same.

2016-10-16 Thread kinoe -
I'm assuming you want if @admin.save then a render or redirect afterwards. #correct,i assuming here i want input data to db with defference name. #means:if i have field name with value "cow" on db, i not want not have two "cow" name on table Box,because that i use @n as checker,are there name

[Rails] data no same.

2016-10-16 Thread kinoe -
controller.rb . def create @admin = Box.new(admin_params) @n = Box.where(name: params[:name]) if @n render 'new' else @admin.save end no error but no function.so how suggest for if input so that data not same. -- You received this message because you are subscribed to the Google

Re: [Rails] suggest routes.

2016-10-15 Thread kinoe -
solved. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to

Re: [Rails] suggest routes.

2016-10-15 Thread kinoe -
solved -- 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+unsubscr...@googlegroups.com. To post to this group, send email to

[Rails] suggest routes.

2016-10-15 Thread kinoe -
I have routes.rb: resources :user #that have default # pathverb # user_index get "user#index'' # post"user#create" #new_user get "user#new" for moment i using method "new" as new.htmk(form login)&"create" as process get data from db.

Re: [Rails] ask remove json after create(crud) manual

2016-10-14 Thread kinoe -
Do you understand the difference? if not then make sure you read up on it. =>not,from doc to save note. so you know when to use <%= and when to use <% =><%= when using form helper. =><% from that i ever try. when using ruby code if,unless,etc. adding.. this question make me want know,than i

Re: [Rails] ask remove json after create(crud) manual

2016-10-14 Thread kinoe -
it's correct.thanks colin.i think if i want using ruby on rails, i have not using = after <%. like statement. -- 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

Re: [Rails] ask remove json after create(crud) manual

2016-10-12 Thread kinoe -
, {:action => "show",:id => ss.id} %> <% end %> <% 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 > > wro

Re: [Rails] ask remove json after create(crud) manual

2016-10-12 Thread kinoe -
this code: Artikel#index <% if @save.blank? %> data nothing <%= link_to "buat baru", artikel_new_path %> <% else %> Title Isi Desc <%= @save.each do |ss| %> <%= ss.title %> <%= ss.isi %> <%= link_to "Desc", {:action => "show",:id => ss.id} %> <% end %> <% end %>

[Rails] ask,json.jbuilder on RoR

2016-10-11 Thread kinoe -
if using rails g scaffold automatically make _index.json.jbuilder on views, this function for what.? thanks. -- 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

Re: [Rails] Re: Learn link_to RoR

2016-10-11 Thread kinoe -
Solved Colin Law, I must add _path => about + _path = about_path.thanks Pada Minggu, 09 Oktober 2016 20.18.01 UTC+7, Colin Law menulis: > > On 9 October 2016 at 14:14, kinoe - <kin...@gmail.com > > wrote: > > Yinka Ash a.k.a > > Netguru > > about_path .

Re: [Rails] Re: Learn link_to RoR

2016-10-11 Thread kinoe -
ask remove json after create(crud) manual Pada Minggu, 09 Oktober 2016 20.18.01 UTC+7, Colin Law menulis: > > On 9 October 2016 at 14:14, kinoe - <kin...@gmail.com > > wrote: > > Yinka Ash a.k.a > > Netguru > > about_path . i want to views/home/about.html.erb

Re: [Rails] ask remove json after create(crud) manual

2016-10-11 Thread kinoe -
I am sorry for my langguage. this above screenshot: what is wrong. I can't using 'rails g scaffold'. thanks.Colin Law -- You received this message because you are

[Rails] ask remove json after create(crud) manual

2016-10-11 Thread kinoe -
this step'' 1.mke contrl Article index create new 2.mke mdel save title:string isi:text 3.in ArticelControl def index @sav = Save.all end def new @sav = Save.new end def create @sav = Save.new(article_params) @sav.save

Re: [Rails] Re: Learn link_to RoR

2016-10-09 Thread kinoe -
1.rails g scaffold home 2.in index.html.erb <<%= notice %> Homes Title Text <% @homes.each do |home| %> <%= home.title %> <%= home.text %> <%= link_to 'Show', home %> <%= link_to 'About', about %>

[Rails] Re: Learn link_to RoR

2016-10-09 Thread kinoe -
Yinka Ash a.k.a Netguru about_path . i want to views/home/about.html.erb otherwise in my routes default make by rls g scaffold is resources :homes. whether i must make new? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe

[Rails] Learn link_to RoR

2016-10-08 Thread Kinoe -
<%= notice %> Homes Title Text <% @homes.each do |home| %> <%= home.title %> <%= home.text %> <%= link_to 'Show', home %> <%= link_to 'About', 'about' %> #this line make by me <%= link_to 'Edit',