similar to: DEPRECATION WARNING: Passing a template handler in the template name is deprecated. (rspec + haml)

Displaying 20 results from an estimated 1000 matches similar to: "DEPRECATION WARNING: Passing a template handler in the template name is deprecated. (rspec + haml)"

2011 Dec 13
1
Trouble setting up Rails with a JS runtime environment
Hi all, I''m using Ubuntu 11.10 and the terminal to install and run Rails. Here is the process I''ve taken so far to setup Rails: > download and install Ruby 1.9.2 and Rails 3.1.0 -- I did this using ''sudo apt-get ruby1.9.1'' and ''sudo gem install rails'' > I made a new rails app using ''rails new path/to/app'' > I went
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
2012 Jun 14
1
Cucumber/RSpec ::: Capybara? Webrat What am I using??
Hey everybody I''m currently reading through the Pragmatic Programmers RSpec book, and I really enjoy it. But I’m facing some problems because of the fact that the book is already some years old, I guess. I have installed rvm and use Ruby 1.9.3, and I didn’t really get some Rails code examples to work properly, so I tried it with a 1.8.7 installation, but there I had some other problems
2009 Aug 27
0
HAML/SASS Auto Updater for $2
The recession has hit my family hard, so I''ve decided to sell an application that I use quite often when designing websites. Screenshot: http://img195.imageshack.us/img195/5440/screenshotisl.png With this application, you may add haml/sass files and when they are changed, they automatically transform into html/css. This is great for making templates or creating webpages outside of
2009 Sep 27
4
Haml & Sass
I would like to use Haml for pages (and possibly templates) and Sass for CSS. But I am a webgen newbie and can''t figure out the configuration. Is such a configuration possible? Could someone help me set it up?
2008 Feb 18
0
HAML: strip white space from output?
Hi all Is there an option for HAML that strips all unnecessary white space, line breaks etc. from the output to save some bandwidth? For SASS I found such configuration, but not for HAML... Thanks for info. Josh -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2012 Dec 04
0
Empty test suite is run after every rake task
When I run rake db:migrate or rake -T I get these lines at the end: Finished in 0.000276 seconds. 0 tests, 0 assertions, 0 failures, 0 errors My Gemfile is: source ''http://rubygems.org'' gem ''rack'' gem ''rails'', ''3.0.9'' gem "acl9", ''0.12.0'' gem "fastercsv"#, :version =>
2008 May 26
5
Noob SASS error (permission denied)
I just created the sass directory in my stylesheets directory and when I reload my page I get this error: Status: 500 Internal Server Error Permission denied - /Users/Justin/kicksite/trunk/public/ stylesheets/ application.css /usr/local/lib/ruby/gems/1.8/gems/haml-2.0.0/lib/sass/plugin.rb: 72:in `initialize'' /usr/local/lib/ruby/gems/1.8/gems/haml-2.0.0/lib/sass/plugin.rb: 72:in
2012 Aug 19
0
Unsuccessful with using mongodb with rails
I have had a frustrating time trying to get mongodb to work with Rails (works just fine with a plain Ruby app). cannot load such file -- mongo The error is traced to the code line <requires ''Mongo''>. bundle initialize shows I have it all. Any ideas? Thanks, Shiv $ bundle install Using rake (9.2.2)
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
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
2010 Mar 30
0
using haml in internationalisation with haml views
I''m trying to use haml in my locale files but cant get it to parse. en.yml --------- page: content: " %p some paragraph %p another paragraph " view.html.haml ------------------- (works) =Haml::Engine.new(t(''page.content)).render -------------------(does not) =t(''page.content) is the first example the only way to do this? or am I going about
2011 Nov 21
1
uninitialized constant Sass::Script::Functions::EvaluationContext
Hi, after deploying a bunch of modifications to my web app... I get the error attached trying to load the page (see attached file). This is my environment.rb file: config.gem ''warden'' config.gem ''devise'', "~> 1.0.9" config.gem "role_model" config.gem "formtastic", :version => "~> 0.9.10" config.gem
2010 Aug 19
0
Camping 2.1 - ERB, Haml, 1.9, bug fixes, new website!
{} || || ~~~~~~~~~~~~~~~ <= _whycake ~ Camping 2.1 ~ ~~~~~~~~~~~~~~~ I''m pleased to announce another release of Camping, the microframework. This time we''ve focused on improving the 1.9 support, adding (builtin) support for more template engines, refreshing the homepage and just general bug fixes. gem install camping Home:
2011 Oct 29
2
comments on HAML ?
I have been asked a couple of times at job interviews if I am familiar with HAML or Liquid so I was wondering if maybe I should start using them and perhaps it would make the views easier to work with. If I install HAML on a machine where my app is that has alot of regular HTML in the .erb views already, will it still work with those or do I need to convert everything to HAML ? Can I have some
2008 Jul 03
0
Testing HAML in helper rspec
Thought I''d post this under its own heading so others can find it. Thanks to David for the pointers to solve this. Here is the incantation needed to use HAML 2.0 under RSpec 1.1.5 (Needs the .5 for a fix) # application_helper_spec.rb under spec/helpers ... before :each do helper.extend Haml helper.extend Haml::Helpers helper.send :init_haml_helpers end it
2011 Oct 08
1
Rails view spec expectations/matchers
>From looking at the RSpec Rails documentation (https://www.relishapp.com/rspec/rspec-rails/docs/view-specs/view-spec) it seems like rendered is just a string and you can''t really do any assert_select type stuff out of the box. After Googling around, it seems that the RSpec authors decided that if you want that functionality, you should just use Capybara or some such... is that
2012 Jan 21
16
Installing rails on Ubuntu
Hello, I''m trying to install the rails on ubuntu 11.10, but when I put the command felipe@Felipe:~/Downloads/rubygems-1.8.15$ sudo gem install rails --no-r1 --no-rdoc ERROR: Loading command: install (LoadError) no such file to load -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand felipe@Felipe:~/Downloads/rubygems-1.8.15$
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