Profile cover photo
Profile photo
Muhamad Akbar Bin Widayat
78 followers -
sukses dunia dan akhirat itu lebih disarankan. :)
sukses dunia dan akhirat itu lebih disarankan. :)

78 followers
About
Posts

Post has attachment
PhotoPhotoPhotoPhotoPhoto
8/7/17
21 Photos - View album
Add a comment...

Post has attachment

Post has attachment
Rails select_month and select_year pre populate parameter
Hi all,
I want to share to you how to pre populate parameter into your form. <%= select_month(params[:month].present? ? params[:month].to_i : Date.today.month, {}, {name: 'month'}) %>
<%= select_year(params[:year].present? ? params[:year].to_i : Date.toda...
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Using Pre Highlight
function foo()
{
console.log("Hello, world!")
}
Add a comment...

Post has attachment
Ruby invert hash
Hi all, This is how to invert hash manually. path_names = {:glass=>"gelas", :metals=>"", :other=>"lainnya", :papers=>"kertas", :plastics=>"plastik"} new_names = path_names.inject({}) { |h, (k, v)| h[v] = k; h } The result: {"gelas"=>:glass, "lainnya"=>:othe...
Add a comment...

Post has attachment
Ruby on Rails Elasticsearch - Faraday::ConnectionFailed (Connection refused - connect(2) for "localhost" port 9200)
English: Ruby on Rails logo (Photo credit: Wikipedia ) Ruby on Rails can implement Elastic search. I have project that use Elasticsearch to search job. This is my new experience to set up elastic search. After I run the rails project, I had error Faraday::C...
Add a comment...

Post has attachment
The fundamental to be Ruby On Rails Developer
I would like to share how the important things to know about the fundamentals things to become Ruby on Rails developer. First of all, I would like to share to you about the meaning of developer. Web developer is someone who makes website based on the blue p...
Add a comment...

Post has attachment
Learning Object of Ruby
It's time to share about learning Ruby as a programming language. I would say, it is not quite hard to learn form basic to know about Ruby itself. As you know Ruby is always to detect everything like object even string. For instance, 2.2 . 1 : 001 > "Muhama...
Add a comment...

Post has attachment
Codeigniter CkEditor Pre populate value in form
Hi, I have a tips for developer codeigniter to handle prepopulate. Try this in your form add setData() <textarea id="pr_description" class="form-control" value="<?php echo set_value('pr_description'); ?> "name="pr_description"></textarea> <script>   CKEDITO...
Add a comment...
Wait while more posts are being loaded