This file contains hidden or 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
$("#menu div.ticket_info p.editable").editable(admin_ticket_path($("#menu div.ticket_info").attr("id")), { | |
method : 'PUT', | |
name : $(this).attr("id"), | |
submitdata : { authenticity_token : $("#menu div.ticket_info p#authenticity_token ").text() } | |
}); |
This file contains hidden or 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
ruby script/plugin --verbose install http://github.com/stevenbristol/less-js-routes.git/ | |
Plugin not found: ["http://github.com/stevenbristol/less-js-routes.git/"] | |
#<Errno::ENOENT: No such file or directory - /dev/null> |
This file contains hidden or 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
<% @listakategori.each do |listakategori| %> | |
<#%= link_to listakategori.name, listakategori %> | |
<%= link_to listakategori.name, { :action => "wgkategori" } %> | |
<% end %> |
This file contains hidden or 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
/usr/bin/ruby1.8 -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/tickets_controller_test.rb" "test/functional/categories_controller_test.rb" "test/functional/messages_controller_test.rb" | |
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader | |
Started | |
..E..EE...EEEE...........EEEEEFFFEEE...EEEEEE.........EEEE....EEE....EEE | |
Finished in 3.435034 seconds. | |
1) Error: | |
test_should_get_edit(CategoriesControllerTest): | |
ActiveRecord::RecordNotFound: Couldn't find Category with ID=1641081125 | |
/test/functional/categories_controller_test.rb:30:in `test_should_get_edit' |
This file contains hidden or 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
Migrating to AddStatesToDevData (20090906115422) | |
Ticket Load (1.0ms) SELECT * FROM `tickets` WHERE (`tickets`.`employee_name` = 'Tomek') LIMIT 1 | |
Ticket Load (0.0ms) SELECT * FROM `tickets` WHERE (`tickets`.`employee_name` = 'Adiego') LIMIT 1 | |
SQL (0.0ms) BEGIN | |
Category Load (0.0ms) SELECT * FROM `categories` WHERE (`categories`.`id` = 1641081125) | |
Category Load (0.0ms) SELECT `categories`.id FROM `categories` WHERE (`categories`.`name` = BINARY 'Zwrot' AND `categories`.id <> 1641081125) LIMIT 1 | |
Ticket Update (0.0ms) UPDATE `tickets` SET `updated_at` = '2009-09-06 13:24:15' WHERE `id` = 1113204912 | |
SQL (21.0ms) COMMIT | |
SQL (0.0ms) BEGIN | |
Category Load (0.0ms) SELECT * FROM `categories` WHERE (`categories`.`id` = 1304086846) |
This file contains hidden or 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
class Ticket < ActiveRecord::Base | |
# t.integer :category_id | |
# t.string :employee_name | |
# t.integer :order_number | |
# t.string :email | |
# t.string :basic_state | |
belongs_to :category | |
has_many :messages, :dependent => :destroy |
This file contains hidden or 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
Migrating to AddStatesToDevData (20090906115422) | |
Ticket Load (2.0ms) SELECT * FROM `tickets` WHERE (`tickets`.`employee_name` = 'Tomek') LIMIT 1 | |
Ticket Load (0.0ms) SELECT * FROM `tickets` WHERE (`tickets`.`employee_name` = 'Adiego') LIMIT 1 | |
Ticket Load (0.0ms) SELECT * FROM `tickets` WHERE (`tickets`.`id` = 963368505) | |
SQL (0.0ms) BEGIN | |
Category Load (1.0ms) SELECT * FROM `categories` WHERE (`categories`.`id` = 1304086846) | |
Category Load (1.0ms) SELECT `categories`.id FROM `categories` WHERE (`categories`.`name` = BINARY 'Wysyłka' AND `categories`.id <> 1304086846) LIMIT 1 | |
Ticket Update (0.0ms) UPDATE `tickets` SET `order_number` = 0, `updated_at` = '2009-09-06 12:48:32' WHERE `id` = 963368505 | |
SQL (25.0ms) COMMIT | |
Ticket Load (21.0ms) SELECT * FROM `tickets` WHERE (`tickets`.`id` = 1113204912) |
This file contains hidden or 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
class AddStatesToDevData < ActiveRecord::Migration | |
def self.up | |
tomek_ticket = Ticket.find_by_employee_name("Tomek") | |
adiego_ticket = Ticket.find_by_employee_name("Adiego") | |
tickets = {tomek_ticket.id => { "basic_state" => "opened" }, adiego_ticket.id => { "basic_state" => "closed", "order_number" => "0000" } } | |
Ticket.update(tickets.keys, tickets.values) | |
=begin | |
tomek_ticket.basic_state = "opened" | |
adiego_ticket.basic_state = "closed" | |
tomek_ticket.save! |
This file contains hidden or 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
#migracja pierwsza | |
class AddBasicStateColumnToTickets < ActiveRecord::Migration | |
def self.up | |
add_column :tickets, :basic_state, :string | |
end | |
def self.down | |
remove_column :tickets, :basic_state, :string | |
end | |
end |
This file contains hidden or 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
<% unless @ticket.messages.empty? %> | |
<h3>Wiadomości:</h3> | |
<%= render :partial => "/messages/messages", :locals => { :messages => @ticket.messages } %> | |
<% end %> |
NewerOlder