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
module ActionView | |
module Helpers | |
module FormHelper | |
def currency_field(object, method, options = {}) | |
field = InstanceTag.new(object, method, self) | |
options[:value] = field.value(field.object) | |
options[:size] ||= 19 | |
options[:maxlength] ||= 19 | |
options[:style] ||= 'text-align:right' | |
field.to_input_field_tag("text", options) |
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
create_table :products, :force => true do |t| | |
... | |
t.enum :status, limit => [:actived, :paused, :pre_sale] | |
... | |
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
create_table :products do |t| | |
t.column :enum, :status, :limit => [:actived, :paused, :pre_sale] | |
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
create_table :products do |t| | |
t.column :enum, :status, :limit => [:actived, :paused, :pre_sale] | |
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
create_table :products do |t| | |
t.column :enum, :status, :limit => [:actived, :paused, :pre_sale] | |
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
create_table :products do |t| | |
t.column :enum, :status, :limit => [:actived, :paused, :pre_sale] | |
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
create_table :products do |t| | |
t.column :enum, :status, :limit => [:actived, :paused, :pre_sale] | |
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
create_table :products do |t| | |
t.column :enum, :status, :limit => [:actived, :paused, :pre_sale] | |
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
create_table :products do |t| | |
t.column :enum, :status, :limit => [:actived, :paused, :pre_sale] | |
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
create_table :products do |t| | |
t.column :enum, :status, :limit => [:actived, :paused, :pre_sale] | |
end |
OlderNewer