Displaying 20 results from an estimated 200 matches similar to: "Battle of Namings: stylesheet_link_tag vs link_to_javascript"
2006 Jan 16
1
default_url_options for relative tag URLs
Hello,
I need help with using ''default_url_options''. At least this is the
function that I *think* is involved in the solution I seek. :)
I''m deploying my rails app beneath an Apache ProxyPass setup. I''ve got
it all working fine except that any rails tagging functions in my
templates create absolute URL references.
For example, this stylesheet function in my
2014 Dec 09
2
UTF8 markdown vignette
Dear Duncan,
The UTF-8 characters aren't properly rendered in the pdf version of the vignette.
$?? ????? ?????? ?????? ????? ?? ?? is rendered as $????? ?????????? ???????????? ????? ?????? ? ???????? ????????
The same problem occurs when I use render("vignette.md", output_format = "mypackage::mystyle"), instead of render("vignette.md", output_format =
2014 Dec 09
4
UTF8 markdown vignette
A few things to clarify:
1. You do not necessarily have to keep the \usepackage{} line if you
use %\VignetteEncoding{UTF-8}, because Pandoc will use UTF-8 anyway in
its LaTeX template.
2. Perhaps the vignette engine in R has done something clever to
convert utf8 to UTF-8, but I'd recommend %\VignetteEncoding{UTF-8}
instead of %\VignetteEncoding{utf8} to make sure it is a valid
encoding name,
1999 May 17
4
Drive namings...
Just wondering if there is a way to get drive namings to change according
to who's logged into the network.
ie.
'bob' logs into windows networking and gets...
E: 'bob' on server kiwi.
Now if 'sue' logs into windows networking on the same pc she gets...
E: 'bob' on server kiwi.
But E: contains sue's stuff. So is there a way into making 'sue'
2009 Apr 09
4
uninitialized constant ActionView::Helpers::AssetTagHelper
Hi All,
I just wiped out my hard drive, did a fresh install of os x 10.5, and
upgraded to rails 2.3.2. i installed the mysql pkg for os x, and
created the databases i needed for the project i was working on before
the upgrade.
However when i run rake db:migrate to run my migrations i get this
error
uninitialized constant ActionView::Helpers::AssetTagHelper
I''ve found some stuff about
2008 Nov 08
0
Sweave:How to load available colors from pkg 'color'--(Resolved)
Hello: I found a solution to my problem here, I just downloaded mystyle.sty to the same directory where my latex file resides. Then I included \usepackage{mystyle} in my preamble and that took care of coloring any section of the document.
http://www.sci.usq.edu.au/staff/robertsa/LaTeX/ltxfloats.html
Felipe
Is there a shorter way to color the abstract,sections subsections and page headings of a
2010 Oct 15
2
include ActionView::Helpers in Rails 3?
How do you do the equivalent of:
module MyLibrary
include ActionView::Helpers::AssetTagHelper
end
...in Rails 3?
I''m trying to upgrade my app from 2.3.9 to 3.0.1 and I have some stuff
in /lib that needs to include these helpers from ActionView. It works
fine in 2.3.x, but in 3.x it''s giving me the error:
undefined local variable or method `config''
One of the
2014 Dec 09
0
UTF8 markdown vignette
On 09/12/2014, 5:19 AM, ONKELINX, Thierry wrote:
> Dear Duncan,
>
> The UTF-8 characters aren't properly rendered in the pdf version of the vignette.
> $?? ????? ?????? ?????? ????? ?? ?? is rendered as $????? ?????????? ???????????? ????? ?????? ? ???????? ????????
That looks as though the UTF-8 characters are being interpreted as
Latin1 characters (or whatever your native
2014 Dec 09
0
UTF8 markdown vignette
On 09/12/2014 11:13 AM, Yihui Xie wrote:
> A few things to clarify:
>
> 1. You do not necessarily have to keep the \usepackage{} line if you
> use %\VignetteEncoding{UTF-8}, because Pandoc will use UTF-8 anyway in
> its LaTeX template.
>
> 2. Perhaps the vignette engine in R has done something clever to
> convert utf8 to UTF-8, but I'd recommend
2014 Dec 09
0
UTF8 markdown vignette
Dear Yihui,
I have created a reproducible example at https://github.com/ThierryO/utf8vignette
The \usepackage{} line is needed, otherwise R CMD check --as-cran will give a warning.
%\VignetteEncoding{UTF-8} did not solve the problem.
I use rmarkdown_0.3.11
HTML vignette is not an option as the vignette demonstrates the use of a custom beamer output format.
Best regards,
Thierry
ir. Thierry
2014 Dec 09
2
UTF8 markdown vignette
Dear all,
I'm trying to use a Markdown vignette with UTF-8 encoding. It compiles well when knitting the vignette in RStudio, but it fails to recognize the UTF-8 settings when building the source package. Can someone point out what I'm doing wrong? I tried to put the relevant information below.
Best regards,
Thierry
Details:
Using 64-bit R 3.1.2 with encoding = "native.enc"
2008 Oct 28
7
How to override one method of AssetTagHelper
I created a file ./lib/action_view/helpers/asset_tag_helper.rb
and put in it only the method I want to override. like this
module ActionView
module Helpers #:nodoc:
module AssetTagHelper
def image_path(source)
compute_public_path(source, ''images'')
end
end
end
end
But as soon I try this all the others methods from the overriden module
are not
2006 Mar 13
1
rendering templates outside defaultl views location
Hi,
I''d like to accomplish the following situation (pseudo code):
IF file /path/to/some/tpldit exists
render that
ELSE
render file from default tpl dir
END
Should I override some built-in Rails methods for this or is there an
easier (yet clean and DRY) way of doing this?
I''ve done something similar for the assetTagHelper related functions
using a tiny plugin that
2008 Oct 31
2
Stubbing #javascript_include_tag in a helper spec
When writing specs for a helper method, how do you set an expectation
for #javascript_include_tag ?
describe NeighbourhoodsHelper do
describe ''#initialise_map'' do
it ''should include the "foo" JS file'' do
# expectation here
helper.foobar
end
end
end
I''ve tried replacing "# expectation here" with the
2011 Sep 02
1
can't compile assets on prod due to asset_host config && SSL requirement
My production asset_host config looks like this:
config.action_controller.asset_host = Proc.new { |source, request|
if request.ssl?
"#{request.protocol}#{request.host_with_port}"
else
"#{request.protocol}assets#{(source.length % 4) +
1}.example.com"
end
}
...which is more or less straight from the docs:
2006 Aug 06
0
Best practice: installing plugin assets in rake task or install.rb?
I noticed that a few plugins come with rake tasks to install additional
assets. In Rails 1.1.4 there''s a hook file, install.rb, that is run
when after the plugin has been installed (edge Rails has uninstall.rb,
too). Wouldn''t it be nicer to use this (these) hooks to install
(remove) plugin specific files automatically?
Preferrably existing (different) files are overwritten
2007 May 24
0
asset tag helpers
Is it possible to add another asset tag helper
(ActionView::Helpers::AssetTagHelper ) ??
coz i''m using the ActionController::Base.asset_host = "http://
assets.example.com" for my static files.. and I want my app to get
video files from that host too.. but the thing is only images,
javascripts and stylesheets have the asset tag helpers with them..
what if i wanted videos? any
2008 Feb 05
0
Asset IDs not changing in development environment?
Perhaps I''m completely missing something, but...
It seems like ActionView::Helpers::AssetTagHelper#compute_public_path
keeps a cache of all public paths along with the appended asset id.
However, this means that applications (in this case, Facebook) that
cache based on the name of the file will never pull the new file if
it''s been modified.
Would it make sense to either:
(a)
2007 May 24
0
asset tag helper
Is it possible to add another asset tag helper
(ActionView::Helpers::AssetTagHelper ) ??
coz i''m using the ActionController::Base.asset_host = "http://
assets.example.com" for my static files.. and I want my app to get
video/flash files from that host too.. but the thing is only images,
javascripts and stylesheets have the asset tag helpers with them..what
if i wanted videos?
2014 Dec 09
3
UTF8 markdown vignette
On 09/12/2014, 4:38 PM, ONKELINX, Thierry wrote:
> Dear Yihui,
>
> I have created a reproducible example at https://github.com/ThierryO/utf8vignette
>
> The \usepackage{} line is needed, otherwise R CMD check --as-cran will give a warning.
> %\VignetteEncoding{UTF-8} did not solve the problem.
I've just taken a look at the sources, and that's only in R-devel, it
never