# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
Rails flash messages with AJAX requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Cetak dengan page break</title> | |
<style> | |
.halaman{ | |
page-break-after: always; | |
page-break-inside: avoid; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'dm-core' | |
require 'dm-migrations' | |
DataMapper.setup(:default, "sqlite3:///#{Dir.pwd}/gabung.db") | |
class Institusi | |
include DataMapper::Resource | |
property :id, Serial | |
property :nama_institusi, String | |
property :nilai, Integer |
NewerOlder