save_and_open_page
have_button(locator)
[ pid=29556 thr=140539690551104 file=ext/apache2/Hooks.cpp:865 time=2011-08-04 16:42:49.371 ]: Unexpected error in mod_passenger: An error occurred while receiving HTTP upload data: The timeout specified has expired (70007) | |
Backtrace: | |
in 'boost::shared_ptr<Passenger::BufferedUpload> Hooks::receiveRequestBody(request_rec*)' (Hooks.cpp:1293) | |
in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:566) |
class PrependCheckboxInput < SimpleForm::Inputs::Base | |
def input | |
"<div class='input-prepend'> | |
<label class='add-on active' title='#{options[:tooltip]}' rel='tooltip' > | |
#{@builder.check_box(attribute_name.to_s + '_check')} | |
</label> | |
#{@builder.text_field(attribute_name, input_html_options)} | |
<span class='help-inline'> | |
#{options[:help]} | |
</span> |
class LeftBoxInput < SimpleForm::Inputs::Base | |
def input | |
"<div class='input-prepend'><span class='add-on'>#{options[:symbol]}</span>#{@builder.text_field(attribute_name, input_html_options)}</div>".html_safe | |
end | |
end |
class User | |
after_initialize :init | |
def init | |
self.number ||= 0.0 #will set the default value only if it's nil | |
end | |
end |
window.variable = "foo" | |
en vez de | |
variable = "foo" | |
y asi lo puedes llamar desde donde sea como | |
window.variable |
class CheckinServer < Sinatra::Base | |
include Paperclip::Glue | |
set :server, :thin | |
set :views, settings.root + '/../app/views/sinatra' | |
connections = [] | |
# include routing and URL helpers | |
include ActionDispatch::Routing | |
include Rails.application.routes.url_helpers | |
# use routes normally | |
users_path #=> "/users" |
class User | |
has_many :parameter_values, as: :valuable | |
has_many :parameters,-> { uniq }, :through => :parameter_values | |
end | |
class ParameterValue | |
belongs_to :parameter | |
belongs_to :valuable, :polymorphic => true | |
end |
{ | |
"auto_complete_commit_on_tab": true, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme", | |
"fade_fold_buttons": false, | |
"file_exclude_patterns": | |
[ | |
"*.tmTheme.cache", | |
"*.tmPreferences.cache", |