similar to: View spec response has no content?

Displaying 20 results from an estimated 500 matches similar to: "View spec response has no content?"

2019 Feb 15
0
32 seconds vs 72 minutes -- expected performance difference?
> > That's interesting indeed. The verbose logs and network trace would tell > us more. > I've enabled verbose/debug logging on the client side. Here are a few operations from the log, and my observations on them: 1) Why is the log saying `SMB2` everywhere? Shouldn't it be saying `SMB3`? 2) Is this normal -- fs/cifs/smb2misc.c: Calculated size 157 length 156 mismatch mid
2006 Aug 03
0
setting a session variable, :value and :session_path
Hello, I''m having some difficulty with using sessions. Basically, I''d like to be able to store a hash in an action: def action session[:details] = {:value => some_hash, :session_path => "/main"} end I''d like to be able to retrieve the hash in another action under the same "main" controller. I retrieve it by doing the following: def
2012 Nov 02
1
[Rails 3.2.8] issue in regex scan
running a scan in irb is fine : 1.9.3p194 :001 > request_url = "http://lvh.me::3000/en/backoffice/cms-admin/site/6/pages" => "http://lvh.me::3000/en/backoffice/cms-admin/site/6/pages" request_url.scan(/^([\S]+)(backoffice\/cms-admin\/site\/)(\d+)(\/pages)$/)[0][2] => "6" however running it in my controller doesn''t gives any result : (rdb:1)
2012 Oct 21
1
load_missing_constant
I have a model ''site'' defined in a sub-folder ''cms'' class Cms::Site < ActiveRecord::Base ..... the model is loaded correctly , checked in console: application.rb config.autoload_paths += Dir["#{config.root}/app/models/**/"] console >Cms::Site.all => [] Now trying to access this model from a sites_controller ( in backoffice/cms
2005 Jul 12
0
nmbd registering itself als DMB is not working
Hello everybody, i'm just setting up a samba server as pdc with ldap backend. everything but netbios works fine. The system is called aadmt00 and is a pdc (virtual) and is bound to the ip 192.168.53.180 hgest3201:~ # ip addr list 1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 brd 127.255.255.255
2013 Apr 15
0
mounting engine in namespace
I am testing an engine which normally is mounted at / NotifyMe::Application.routes.draw do > mount_opro_oauth :controllers => {:oauth_client_apps => > ''oauth/client_apps''} I am trying to mount it inside my existing backoffice namespace, is it possible or not advisable namespace :backoffice do > match ''/'', to:
2007 Aug 02
2
Do the :attributes and :content matchers work
[Rails plugin 1.0.5] Hi, I am looking for some guidance. When working on a partial which looks like this <div class="bug" style="width: 100%;" /> I have some examples which should fail - I think - but do not: it '' should fail'' do response.should have_tag( ''div.bug'', :content => ''There is no
2012 Nov 29
2
[Rails 3.2] form_tag w :remote => true doesn't fire up the js format
I have a form_tag written like this : = form_tag search_backoffice_places_path, {:remote =>"true", :id => :searchplaceForm } do .. input fields = submit_tag t(:search) generated html is correct : <form accept-charset="UTF-8" action="/en/backoffice/places/search" data-remote="true" id="searchplaceForm" method="post"> ...
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:
2007 Dec 04
0
shared behaviour for all views
Is there a way I can write something like a shared behaviour for all views that just checks the page responds with a 200 status and has a title, meta tags, and an h1? Here''s an idea for a shared behaviour (that only applies if I set views to use it manually with it_should_behave_like "a standard layout"): describe "a standard layout", :shared => true do
2012 Mar 26
3
render :json not sending any data back ...
[rails 3.2.2] I perform an ajax call : ... $.ajax url: " /backoffice/expenses/rate" type: "GET" dataType: "json" data: project_id: $(''#project_id'').val() code: $(this).val() success: (result) -> alert result $(''#expense_price'').val(result) in
2006 Aug 03
0
Setting session variables and expiration issue.
Hello, I''m having some difficulty with using sessions. Basically, I''d like to be able to store a hash in an action: def action session[:details] = {:value => some_hash, :session_path => "/main"} end I''d like to be able to retrieve the hash in another action under the same "main" controller. I retrieve it by doing the following: def
2008 Jul 22
1
Winbind panic - bug #5551 not completely solved in version 3.0.31?
I started my AD-member server with the DC not being present. Afterwards, I executed the "good practice" sequence from the howtos for testing a installation: "testparm ..." "nmblookup -d ..." "nmblookup -M ..." "nmblookup __SAMBA__ ..." "smbclient -L ..." And some domain tests: "net ads testjoin" "net ads lookup"
2007 Oct 01
1
have_tag and line numbers
When I''ve got a view example like this: 1: response.should have_tag "fieldset#children" do 2: with_tag "child" 3: end If it can''t find ''child'', the error seems to come back as my_spec.rb:1 instead of my_spec.rb:2. Has anyone else experienced this? I just spent a while tracking down what I assumed was a problem in my have_tag only to
2007 Mar 09
6
AssertSelect for strings?
Hi, Is there a way to use the have_tag matcher on a string instead of the response body from a view? I have a helper in a method rails project that returns an html fragment which I would like to test. Like this: module SomeHelper def some_helper_method "<p>foo</p>" end end context "The SomeHelper" helper_name :some specify do
2007 Jul 03
6
How index works!
Hi, i''ve a project in wich i have 2 different rails apps accessing the same DB. The backoffice, as usual, changes data. The frontoffice has a search capabilities with acts_as_ferret (paginated) for search. Maybe this is a newbie question but, when i delete index and restart front app all the articles are indexed, but the new one''s (via backoffice) are not searchable. Does
2010 Jun 23
0
Rails 3 - AJAX Response
Hi, I need help with some AJAX in rails 3. So basically, I have a select option in my index page for my User model. This select option is a form that modifies the user''s type. The " :remote => true " works and the type is changed when hit the submit button. But, nothing happens in the browser. The user is updated. I''m actually not sure where to put either my JS /
2012 May 07
1
Sprockets, JST, Eco and escaping
While it was a good move from Rails part to escape ERB <%= %> tags by default, it doesn''t seem to happen to Sprockets as well. The strange bit is that according to Sprockets documentation, it would be just a matter of naming your template as .jst.eco to enable Eco: https://github.com/sstephenson/sprockets#javascript-templating-with-ejs-and-eco Then, extracted from Eco
2019 Feb 14
3
32 seconds vs 72 minutes -- expected performance difference?
> > Unless you upload a network capture of you mounting and doing the ls -lR > on the client it's hard to say what really goes on. I understand you > might not want to make it public.. but if you do > This is the last thing I'll try after I've exhausted all the other options. How are you mounting your share (which mount options)? > Something weird is going on with
2005 Jun 30
2
nmbd as wins server
Hi, I get constantly every some secondes this entry in log.nmd [2005/06/30 15:11:22, 4] nmbd/nmbd_workgroupdb.c:dump_workgroups(284) dump_workgroups() dump workgroup on subnet 192.168.53.180: netmask= 255.255.255.0: TOPTEST(1) current master browser = AADMT00 AADMT00 400c9b0b (Backoffice Testsystem PDC) [2005/06/30 15:11:22, 4]