tableplus.io

...other schema names when working with a (legacy) application's database. Note that for Rails applications, dropping and recreating the database itself is usually fine in development. You can use...

solnic.eu

...simple definition of meta-programming macros like the has_many that you know from Rails. Modularity also lets you organize large models into multiple source files in a way that...

makandra dev
github.com

...be docked to I18n (configured explicitly on plain Ruby, or use .yml files for Rails): "one & two".convert_miscellaneous_characters # => "one and two" "my words".convert_miscellaneous_html_entities...

Note: This applies to plain Ruby scripts, Rails does not have this issue. When you work with Ruby strings, those strings will get some default encoding, depending on how they...

developer.mozilla.org

...class: 'image-preview' The image_tag will either contain an existing image (rendered by Rails) or be overwritten by Unpoly with an image preview. Testing Here's a Cucumber step...

...using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not add a fingerprint hash to its asset paths by default. This means...

makandra dev
dev.mensfeld.pl

Enumerable#grep_v excludes from the result set. It's similar to Rails' #reject: ['foo', 1, 'bar', {}].grep String # => ['foo', 'bar'] ['foo', 1, 'bar', {}].grep_v String...

...you set both a record's association and that association's foreign key attribute, Rails does not realize you are talking about the same thing. The association change will win...

api.rubyonrails.org

ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information about each part of a request/response cycle.

# or without agent: install-gems-remotely me@my.server.com When you call it from a rails directory, it uploads your Gemfile, Gemfile.lock as well as the gemspecs of all vendored gems...

...encode such strings. You probably know Quoted Printable from e-mail bodies appearing in Rails logs, where =s become =3Ds in URLs, or where long lines are split up and...

There are several options, but most of them are impractical. The best way is to use the :ruby filter:

...you cannot change (e.g. because they are inside a gem, spanning multiple versions of Rails and RSpec), you can explicitly allow the deprecated syntax. Fix Inside spec/spec_helpber.rb, set rspec-expectations...

Observed on Rails 2.3 and machinist 1.0.6 Like the title says, when you define the method empty? like in the following example, you may not longer use collection.make.

dev.mysql.com

...point. A DECIMAL(6,2) column may store numbers up to 9,999.99. In Rails, a decimal column definition looks like this: t.decimal :amount, :precision => 6, :scale => 2. Issue

Consider the following HTML & CSS: ^ img { background-color: red; } div { border: 1px solid black; } This will leave a margin of...

...you don't have a route that responds to /__identify, Capybara will wrap your Rails app in a middleware that responds to that path...

Also compare our card Test if two date ranges overlap in Ruby or Rails...

...once again and check for such things thoroughly before heading into the depths of Rails or your application's logic...

...often need to move data between the client (HTML, Javascript) and the server (Ruby, Rails). Step 1: Moving HTML snippets Add a find-as-you-type search to MovieDB. Above...

...but completely different card: Detect if a Javascript is running under Selenium WebDriver (with Rails...

Ruby 1.8 (supplied by Rails' ActiveSupport) >> BigDecimal.new("0.1").floor.class => BigDecimal Ruby 1.9 (supplied by Ruby 1.9 itself) >> BigDecimal.new("0.1").floor.class => Fixnum In fact, Float#floor has changed from Ruby1.8 to...

The bin/webpack-dev-server command is not as smart as e.g. rails server, where it shows the proper fix within the error message. $ bin/webpack-dev-server yarn run v1.19.1 error Command "webpack-dev-server...

...might get the above error message when cloning certain git repositories (for example the rails repository). It indicates that there is a malformed timestamp in some commit, and your git...