search for: adscontroller

Displaying 6 results from an estimated 6 matches for "adscontroller".

2013 Nov 22
2
Cancan Rspec load_and_authorize_resource
Hello! While running bundle exec rake, I receive following error (see in attached file) However, my tests are steel passing with command rspec spec/controllers/ Some info: ads_controller.rb: class AdsController < ApplicationController load_and_authorize_resource except: :create end ads_controller_spec.rb: require ''spec_helper'' describe AdsController do render_views describe ''Guest role'' do it "should not display link to new ad" do visit a...
2010 Jun 21
4
Unknown action No action responded to 2. Actions: show
...Routes.draw do |map| map.connect ''/ads/id'', :controller=>''ads'', :action=>''show'' map.connect '':controller/:action/:id'' map.connect '':controller/:action/:id.:format'' end 2- ads_controller.rb class AdsController < ApplicationController def show @ad = Ad.find(params[:id]) end end 3- show.html.erb <html> <head> <title><%= @ad.name %></title> </head> <body> <p> <b>Name: </b><%= @ad. name %> </p> <p> <b>Des...
2010 Feb 14
2
paperclip is making me crazy
...<label for="ad_pic_1">Image</label> <%= file_field ''ad'', ''pic_1'' %> <%= submit_tag '' Save '', :class => ''button'' %> and I save and the development.log shows expected... Processing Admin::AdsController#create (for 127.0.0.1 at 2010-02-13 17:49:15) [POST] Parameters: {"html"=>{"multipart"=>"true"}, "commit"=>" Save ", "ad"=>{"salesprogram_id"=>"3", "pic_1"=>"DSC01760.JPG", "...
2009 Mar 26
3
Using same variable in controller
Hi guys! More question :P~ OK, I''m following a tutorial for rail, and I got this new.html.erb in views, and in order for a form to be showed up correctly without error, I had to add this small snippet of code in the controller under method "def new". class AdsController < ApplicationController 2 def show 3 @ad = Ad.find(params[:id]) 4 end 5 6 def index 7 @ads = Ad.find(:all) 8 end 9 10 def new 11 @ad = Ad.new 12 end 13 end My question is, I thought this would be creating an error because I have def show using variabl...
2009 Dec 14
0
samba caching a broken krb5.conf.NETBIOSDOMAINNAME
...os trying to use it? Win 95 LM uses DES -- look at lmHash() documented at http://davenport.sourceforge.net/ntlm.html. We have been using our CentOS clients to mount with ntlmv2i so why would attempts at joining the ADS domain fail with "stronger authentication required"? mount -t cifs //ADScontroller/share /mnt/ntlmv2iprotected --verbose -o username=user at dnsdomainname.com,sec=ntlmv2i Success with "kinit admin at dnsdomainname.com" But then "net -d 10 ads join -U admin at dnsdomainname.com" would fail with "stronger authentication required." I wondering why...
2003 Oct 29
2
can't join W2003 domain with 3.0.0 (krb ticket is OK though)
Hi everyone, I'm using the production release of 3.0.0 and can not join a W2003 domain: [printsrv4] /spool/samba-3.0.0/bin $ ./net -d 10 ads join -Uhumpty_dumpty [2003/10/29 15:35:39, 3] libads/sasl.c:ads_sasl_spnego_bind(191) got principal=adc1$@WIN.DESY.DE [2003/10/29 15:35:39, 1] libsmb/clikrb5.c:ads_krb5_mk_req(269) krb5_cc_get_principal failed (No credentials cache found)