...finished re-compiling, you will just reload the same old assets. When you render HTML without a dev server When you don't have a dev server running and call...
...with isolate scopes have three different variable binding strategies, of which one is =. Example: # HTML # Coffeescript @app.directive 'panel', -> scope: evaluated: '=value' bound: '=twoway' link: -> scope.evaluated # = false scope.bound = 'foo' # Updates parent.someProperty...
...HTML attributes bound with = (value, twoway) have their value evaluated as Angular expression in the parent scope's context and have the result assigned to the corresponding scope variable (evaluated...
If you're using the :header_html option in PDFKit (or the corresponding --header-html option in wkhtmltopdf), and the header remains invisible, you need to add this to your...
The same applies to footers via footer_html
...most Rails application layouts insert randomly rotating CSRF tokens and CSP nonces into the HTML, two requests for the same content and user will never produce the same response bytes...
In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can...
...tutorial doesn't show how to execute ruby-code that isn't rendered to HTML. To do this start a line with a dash ('-') instead of the equals-sign...
Consider this HTML: Even though the surrounding container defines a line-height, which vertically centers its inline elements, the check box will be top aligned if it is the only...
...element inside the container. It will be aligned correctly if the HTML looks like this: foo Complex explanation here. So the actual fix is to add some inline elements next...
...public contract path in the mailer view: Plain text email URI.join(root_url, @user.contract.url) HTML email link_to('Show contract', URI.join(root_url, @user.contract.url).to_s) Note: You need to...
SiteDomain="yourdomain.de" DirData="." DNSLookup=0 Run the following to build a simple HTML page: awstats -staticlinks -config="yourdomain.de" -LogFile=your-logfile.log -output > report.html This might take a second (it...
Under certain (unknown) circumstances, Rails will give localized files an invalid content-type in the Response header. For me, after...
The step definition below allows you to write: Then I should see an HTML redirect to "http://www.makandracards.com" in the page head Capybara Then /^I should see an HTML redirect...
...visible or hidden, we always expect the given text to be contained in the HTML. The test is about whether or not it is hidden via CSS.
In Rails, you can very easily send emails with HTML and plaintext bodies. However, if you're trying to debug those using your normal email account, you might be out...
...will simply throw away the plaintext part of your mail, and just save the html part...
.../tmp/github.html Paste your markdown Press Ctrl-D to finalize your input Open the generated HTML file and print it.
db/schema.rb db/structure.sql public/system .project .idea/ public/javascripts/all* public/stylesheets/all* public/stylesheets/*.css config/database.yml *~ *#* .#* .DS_Store webrat-*.html capybara-*.html rerun.txt coverage.data coverage/* dump_for_download.dump .~lock.* .*.swp C:\\nppdf32Log\\debuglog.txt
It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let...
...our applications. There are many ways to achieve this, from SVGs inlined into the HTML, SVGs inlined in CSS, JavaScript-based solutions, to icon fonts. Out of all these options...
...produces the desired result. vertical-align: text-bottom margin-bottom: -.1em Now, in your HTML, you can add an icon with Icon names are simply the file names of the...
Sometimes you want to run a command forever, e.g. to compile a haml to html file on the console. Use this: $ while(true) do haml index.haml index.html; sleep 1.5; done
...select2 input, you can populate it via AJAX in order to not pollute your HTML with lots of elements. All you have to do is to provide the collection in...
...what you will not be able to use across all clients. See also Designing HTML emails
Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...
Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...
...plain-text response, and can cause trouble. \ For example, consider a middleware that transforms HTML responses; it would also touch such wannabe-plain-text responses sent with the incorrect content...
...response.content_type # => "text/plain" Latest Rails Rails 4.1 deprecates render :text. You should use render :html or render :plain instead. render html: 'Hello' response.body # => "Hello" response.content_type # => "text/html" render plain: 'Hello...
...chain function calls to the promise using .then(), without needing to wait for the HTML request to actually return. The promise will collect all functions passed to then() and invoke...