Hanya dengan Dakwah

hasan al-banna

Materialisme yang dimotori Yahudi dan diikuti oleh Negara Negara penjajah tidak bisa diselesaikan kecuali dengan dakwah kalian, tidak ada kekuatan yang dapat menghalanginya kecuali umat ini berjamaah. Oleh sebab itu, maka aku ingatkan kalian, aku sampaikan kepada kalian, bahwa sejak saat ini kalian akan menghadapi ujian dan cobaan yang besar lagi menyakitkan. Akan tetapi, apabila kalian sabar dan bersikap konstan, pastilah kalian akan meraih kemenangan. Maka bersiap siaplah menyambut ujian. Bersabarlah, dan saling memperkuatlah. Hanya ada dua pilihan baik bagi kalian, menang atau mati sebagai syuhada di jalan kebenaran. eramuslim.com

pagination rails 3 with kaminari

put in your Gemfile

gem 'kaminari'

and then, Bundle install

app/controllers/users_controller.rb

@users = User.order("name").page(params[:page]).per(5)
rails g kaminari:views default

config/locales/en.yml

en:
  hello: "Hello world"
  views:
    pagination:
      previous: "< Previous"
      next: "Next >"
      truncate: "..."

app/views/users/index.html.erb

<%= paginate @users %>

kaminari

id-ruby on unas

ID-ruby on Unas

Id-Ruby is a rubyist community in Indonesia. this page for remembering both id-ruby and Universitas Nasional (unas). before, September 2009 (Ramadhan month). Id-ruby and community of MySql Indonesia on Universitas Nasional.

Id-Ruby visiting to universitas nasional in order to introducing ruby code, ruby on rails.

id-ruby

teknik informatika unas

Speakers :

  1. Arie Kusuma Atmaja
  2. Michael Smith
  3. and so on

Place :

Aula- Sutan Takdir Alisyahbana Mosque

id-ruby

About ID-ruby

id-ruby

id-ruby is a community of ruby users based in Indonesia. We’re a friendly group that freely shares knowledge about the Ruby programming language, its libraries and frameworks, such as Ruby on Rails. The group meets at least once a month for talks, demos, hacks and discussions. Meetings are free and open to the public. Developers with any level of Ruby experience or any programming languages background are welcomed to participate.

Getting in touch

Join us in our mailing lists, and come see us in our meetups!

homepage : http://id-ruby.org/

Getting involved

Fork our repository here http://github.com/id-ruby/ and send us your best pull request to contribute

Action Mailer

signup

Actiion Mailer Tutorial on Rails 3

Action Mailer has been rewrite in Rails 3 , I assuming that you have the User model, and then I’ll generate a new mailer with the following code

   rails g mailer user_mailer

app/mailers/user_mailer.rb

class UserMailer < ActionMailer::Base
default :from => "slametnhd@gmail.com"

  def registration_confirmation(user)
    @user = user
    mail(:to => user.email, :subject => "Registered")
  end
end

/config/initializers/setup_mail.rb

ctionMailer::Base.smtp_settings = {
 :address              => "smtp.gmail.com",
:port                 => "587",
 :domain               => "mail.gmail.com",
 :user_name            => "slametnhd@gmail.com",
  :password             => "secret",
  :authentication       => "plain",
 :enable_starttls_auto => true
 }

 ActionMailer::Base.default_url_options[:host] = "localhost:3000"

/app/views/user_mailer/registration_confirmation.text.erb

Thank you for registering!
<%= @user.name %>

Sincerely for you

masmet.com

app/controllers/user_controller.rb

def create
      @user = User.new(params[:user])
      if @user.save
        UserMailer.registration_confirmation(@user).deliver
        sign_in @user
        flash[:success] = "Welcome to the Masmet App!"
        redirect_to @user

      else
        @title ="sign up"
        render 'new'
      end
    end

gmail