Displaying 20 results from an estimated 10000 matches similar to: "Template localization"
2012 Jan 15
2
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. (rspec + haml)
I upgraded a small project that I had created on 3.1.3 to 3.2.0.rc2.
Running rspec on it brings about a large amount of these messages:
DEPRECATION WARNING: Passing a template handler in the template name is
deprecated. You can simply remove the handler name or pass render :handlers
=> [:haml] instead. (called from block (2 levels) in <top (required)> at
2006 Aug 23
11
i18n friendly, plugable Rails Core
In my work with a simple localization plugin, i''m running into a lot of
places in the Rails core, where text and other localization specific
information is hardcoded.
I''ve included some examples in the bottom of this post.
It''s hard for an outsider to know, if the hardcoded values are a result
of inconsistency in code, or "by design". I hope that we can have
2012 Nov 27
1
controller not rendering existing js.erb file
In my PlaceController, I have a search method, called remotely from a form
the method is executed, but rendering is not executed as the template is
stated as missing ..
but it''s there ...
post :search, :locale => I18n.locale, :format => :js, :country =>
"United"
Error: test_should_search_places(Backoffice::PlacesControllerTest)
ActionView::MissingTemplate:
2013 Jul 10
0
ActionView::Template::Error Not a directory vendor/assets/javascripts/ production
Hello,
In production environment, I have this error ActionView::Template::Error
Not a directory vendor/assets/javascripts/holder.js when in my template I
have this line
<%= image_tag "holder.js/150x200" %>
My production.rb is :
Libapp::Application.configure do
# Settings specified here will take precedence over those in
config/application.rb
# Code is not reloaded
2011 Jul 14
0
Validation error message header not translated (activerecord.errors.template.header seems to be ignored in YAML localization file)
Hello, i am not sure where to report this, i have created an issue at
https://github.com/svenfuchs/rails-i18n/issues/118
It seems that activerecord.errors.template.header is ignored in YAML
localization file.
Changing or translating it has no effect on the rendered header for
validation errors.
Thank you for any comments,
Alexey.
--
You received this message because you are subscribed to
2007 Jul 06
3
stubbing helper methods for View specs
Hi there
I have several view specs, that include the following snippet in
their "before" block to stub the methods by acts_as_authenticated
before :each do
@u = mock_model(User)
@u.should_receive(:name).and_return("Hans Muster")
template.should_receive(:logged_in?).and_return(true)
template.should_receive(:current_user).and_return(@u)
end
this
2011 May 20
5
views w locale default template
[RAILS3]
I hesitate on how handling the locale view templates to default to
one language only ..
sending admin emails will go only to one locale ''en_GB''
should I set it up into the template name and set I18n.locale to
''en_GB''
membership_renew.en_GB.html.erb
OR
whatever locale is used , if I have :
membership_renew.html
it will be the default ?
--
2010 Nov 22
0
Something wrong after upgraded to puppet-dashboard 1.04
After upgraded to puppet-dashboard 1.04, when I click links to check
information of nodes or groups , such as http://localhost:3001/nodes/22,
it return a "We''re sorry, but something went wrong." to me. Checking
the log, i got something as follows:
ActionView::TemplateError (undefined method `<=>'' for #<NodeGroup id:
5, name:"Web_Marketing">) on
2009 May 20
1
templating language questions
Hello,
I''m experimenting with a xhtml templating language and have some
questions about ActionPack, particularly to do with compilable
templates. I''m mostly looking for further information about compilable
templates.
The templating language currently works, though it isn''t a compilable
template handler. I''ve yet to benchmark it, but it seems to be running
2006 Mar 12
0
ERB and Builder template engines shouldn''t be so heavily wired in ActionView::Base
Problem:
1. ERB and Builder template engines are heavily wired in ActionView::Base
2. Should be optional. If we use different engine - why load all their
stuff if not needed?
3. There are template engines which expect files in their own locations
and cache them in their own way. For instance a template engine may
store templates in a database. These engines don''t need any central
source
2013 Mar 07
2
Puppet Dashboard changed reports view error
Hello Puppet Users !
We encounter a problem with the dashboard on this URI : /reports/changed
The /reports works fine with ~130000 reports (up to 3 months and
auto-cleaning with rake reports:prune job)
I make a reports:prune:orphaned, juste in case, but without any success.
The most recent change on the server was the puppetmaster upgrade from
3.0.2 to 3.1.0.
Here is the dashboard error log
2008 Sep 25
0
Rspec, HAML with view testing
Hi all,
Has anyone experienced the following problem testing rspec against
haml views
Attempting to run a view spec (partial)
app/view/users/_foo.html.haml
it "should render it" do
render :partial => "users/foo", :locals => template_locals
end
The following error is returned:
1)
ActionView::MissingTemplate in ''shared/_jar_layout should render
2008 Sep 24
0
Rspec, HAML, view testing
Hi all,
Has anybody experience the following problem running testing rspec
against haml views
Attempting to run a view spec
app/view/users/_foo.html.haml
it "should render it" do
render :partial => "users/foo", :locals => template_locals
end
1)
ActionView::MissingTemplate in ''shared/_jar_layout should render it''
Missing templatet
2007 Nov 20
3
How to test views with Nested Resources and Partials
Hi everyone,
I am relatively new to rspec and I am running into a wall in testing my
views. I have a RESTful resource Contracts with a nested resource of
Line_items.
I am trying to figure out how to test the "edit" form of the Line_items.
What complicates this is the nested routing and how to account for it,
and that there is a partial form (_form.haml) that both the edit.haml
and
2007 May 30
2
ActionView::TemplateError
Hi,
I have a strange problem that only occurs on the production server.
I''ve been banging my head for hours trying to figure it out with no
success. Below is a copy of the error from the production log.
ActionView::TemplateError (Expected /www/rails_apps/scanlan/current/
public/../config/../app/models/image.rb to define Image) on line #6 of
app/views/admin/design/_record.rhtml:
3:
2007 Nov 16
1
Localize CUPS?
Hi,
I've been setting up a networked printer in a 100% Linux LAN, and
there's only one small problem left: how do I localize the CUPS
interface (e. g. the pages I see when opening http://localhost:631 in a
browser)?
My system is localized in french. LANG is fr_FR.UTF-8 in
/etc/sysconfig/i18n. And I checked Firefox: it's supposed to open web
content in French.
Curiously, I had
2010 Aug 14
0
[rails3.0.0.beta4] extend form_tag to always include a hidden field
hi there,
I want every form in the site to add a hidden_field, basically I want them
to always submit the I18n.locale, I''ve tried to alias form_tag_html method
of ActionView::Helpers::FormTagHelper like this:
# in #{MY_APP_ROOT}/lib/action_view/helpers/form_tag_helper.rb
module ActionView::Helpers::FormTagHelper
def form_tag_html_with_locale(html_options)
form =
2008 Apr 07
0
Haml and View tests
Does Rspec work nicely with Haml for controller integrated view tests?
I am getting the following error:
===================
ActionView::TemplateError in ''Admin::ListingsController index should get
a 200 OK''
undefined method `photo'' for true:TrueClass
On line #2 of admin/listings/_listing.html.haml
1: %tr
2: %td.photo= image_tag(listing.photo.url(:thumb),
2008 Sep 30
4
Using the response object in stories
I have this statement in the layout of my application (using haml)
- if request.env["HTTP_USER_AGENT"].include?("MSIE")
= stylesheet_link_tag ''blueprint/ie.css''
= stylesheet_link_tag ''confirm_ie.css''
The problem is that request.env["HTTP_USER_AGENT"] is nil when I go to
some page in the features I write with cucumber and webrat
2010 Aug 13
0
Rails 2 and Rails 3 in the same gemset leads to errors
Hi.
I am pretty new to ruby (and those gems) and rails.. Until now I
thought that all rails application have some kind of integrated
version management (RAILS_GEM_VERSION in Rails 2 and gem ''rails'' in
Rails 3). And therefore I thought that having Rails 2 and Rails 3 in
the same gem repository (in my case gemset under rvm) wouldn''t be a
problem. But during installing