To achieve this goal you have to setup the session store like the following example: MyApp::Application.config.session_store( :cookie_store...

Jasmine has spyOnProperty(), but it only works if the property is implemented using getter and setter functions. This is a...

...it with additional joins or conditions. We call this chaining scopes. In practice chaining becomes problematic when scope chains grow more complex. In particular having JOINs in your scope will...

...year is the week with January 4th in it. All days in this week belong to the year. This means that January 1st, 2nd and 3rd may or may not...

...the year. I am not sure which year December days in the same week belong to, I believe the week actually gets split into two calendar weeks in two different...

This will show you how to create a RSS feed that the Feed Validator considers valid. Note that RSS is...

Rails flashes (FlashHash) track a list of used keys, which is not respected when comparing flash hashes.

In case you want to require a gem, that is not in the Gemfile of you bundle and therefore not...

...use Spreewald's "... in the HTML" meta step, or add this proxy step for better semantics: Then /^I should( not)? see "(.+?)" in the page source$/ do |negate, text|

...to intercept those RSS links, and Capybara internally remains on the previous page. This behavior can be circumvented with the following simple step: # Firefox seems to intercept RSS links. Use...

makandracards.com

The step we used in the past (Then "foo" should not be visibile) doesn't reliably work in Selenium features...

makandra dev

The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...

Converting string characters to or from their integer value (7-bit ASCII value or UTF-8 codepoint) can be done...

Unfortunately, Capybara does not offer a switch to disable cookies in your test browser. However, you can work around that...

...you would consider invalid might suddenly make sense for #encode. This very likely works best when your strings are in few languages that share a similar character set, e.g. English...

...Short explanation: asset_host is used for links to stylesheets and javascripts asset_host belongs to ActionController::Base -- changes are persistent and will not be reset after a request

You are not using javascript tests The file is served from a public folder (not via controller) Problem description...

Today in computer: In Coffeescript, on and yes are aliases for true. off and no are aliases for false.

...like text and images. While this may be useful in most situations, it may become annoying in others. If you e.g. want to allow the user to scroll/move horizontally within...

I needed to make sure that an element is visible and not overshadowed by an element that has a higher...

makandra dev
aws.amazon.com

Amazon Elastic Transcoder is video transcoding in the cloud. It is designed to be a highly scalable, easy to use...

dev.mysql.com

Directly from the MySql docs: There are three likely causes for this error message. Usually it indicates network connectivity trouble...

...your session in a previous request. Working around the issue You can avoid that behavior by stubbing the controller's session and querying that stub: persisted_session = ActionController::TestSession.new controller.stub...

If you need to enable NewRelic monitoring on certain machines within the same Rails environment, a simple solution is to...

...caused by the random order of hash elements of the params hash. class Feedback belongs_to :user def role=(value) @role = value self.email = find_email_by_name(user.name) end

...work on a large application where a lot of code depends on the indeterministic behavior above, and it would be too much work to refactor the whole app for a...

Xfce gives you a million options to configure your panels. Together with Xfce's sometimes arcane configuration UI, this can...