similar to: Ruby on Rails and prepated statements

Displaying 20 results from an estimated 2000 matches similar to: "Ruby on Rails and prepated statements"

2013 May 04
21
Getting started w/ Rails 4
Hi. I''m trying to run Getting started tutorial under Rails 4.0.0.beta1 although it assumes it runs on Rails 3. I was able to get rid of all errors by wrapping post_params here and there, and installing protected_attributes Gem for attr_accessible to make sense. Post/ comment CRUD works just fine, but I don''t seem to be able to add Tags (the final part of the tutorial). Post saved
2007 Mar 23
2
assert_select VS assert_no_tag
Hi everybody. Assert_no_tag will be deprecated soon. How can i use assert_select for checking not existed tag? Thanks. Bye. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To
2009 Dec 28
2
How to get parameters to controller from view using <input tag?
Hello! I''m everywhere searching the answer for my question. How to get parameters to controller from view using <input tag. But I want to do this without db. I have the code: class TranslateController < ApplicationController def start @time = Time.now end def result @rez = params[:name] end end <html> <head> <title> Translate numbers from 10 to
2013 Mar 22
3
How to display div inline?
Ok, I have some div element, which should be displayed inline after AJAX call and should replace other element. Without display:inline it works, new element is on new line, and looks like it supposed to be. But when I add display:inline to styling, Ajax call just hides element but renders nothing. If I add display:inline-block than all element change their size with each new, which I
2006 Aug 22
1
Interesting zfs destroy failure
Saw this while writing a script today -- while debugging the script, I was ctrl-c-ing it a lot rather than wait for the zfs create / zfs set commands to complete. After doing so, my cleanup script failed to zfs destroy the new filesystem: root at kronos:/ # zfs destroy -f raid/www/user-testuser cannot unshare ''raid/www/user-testuser'': /raid/www/user-testuser: not shared root
2019 Nov 10
4
Invalid PTR record in reverse lookup zone
On Sun, Nov 10, 2019 at 11:00:20AM +0000, Rowland penny via samba wrote: > On 10/11/2019 10:49, andi via samba wrote: > > Hello, > > > > I have configured an samba AD DC for use with > > some windows and linux machines. The linux machines use > > samba for user auth and also as kerberos kdc for > > nfs mounts. This works fine so far but after a while >
2010 Sep 02
1
Steam Installation Errors
Hey guys, I'm sure that this question has already been answered. If so, could someone direct me to the answer. The problem is that, steam.exe cannot access the Internet. My Internet service is fine, and I have not had any problems with steam accessing the Internet in the past. The problem only started a few days ago, and I am not sure what the cause is. I have tried basically everything. I
2011 Oct 29
1
[XCP/Kronos/XenSource] Fast cloning with copy-on-write
I''ve just been playing with XenSource and Kronos packages, but the fast cloning ability from XenServer doesn''t appear to be available. Where does this come from exactly, is it something built into Xen or is there a component of XenServer that''s needed to handle it? I was hoping to use Xen on Debian with my web app controlling it using either XAPI or Libvirt, but I
2004 Aug 20
1
smbcacls syntax eludes me (perhaps)
(Is this the right place to post such question?) I can't seem to grasp the right syntax for smbcacls This is a 306rc2, security=user system w/ passwords set via smbpasswd, and smbclient gives expected r/w behavior.I've seen the same on a 302a security=domain or ads system (I believe), which is why I think I'm misinterpreting something (or is smbcacls broken??) -- or what
2012 Jul 03
3
Kronos - VPN and Apache
The Kronos page: http://wiki.xen.org/wiki/Project_Kronos includes these two entries: A couple of network-related notes + XAPI expects to run in a clean environment, and listens on ports 80 and 443. If you''re running anything else on these ports (typically Apache/Apache2), then you''re likely to have problems. + There is a known bug (which needs to be fixed)
2009 Sep 16
3
find_by_sql - multiple selects, same statement SQL error
I''m trying to get the following statement to work using variable substitution (it works if hard-code the where (med_type) param in the inner SQL statement): med_type = ''game'' @mediaformats = MediaFormat.find_by_sql("select * from media_formats where media_formats.media_type_id = (select media_type_id from media_types where media_type = ?, :med_type) order by
2019 Nov 12
2
Invalid PTR record in reverse lookup zone
On Mon, Nov 11, 2019 at 05:27:03PM +0000, Rowland penny via samba wrote: > > > > Kerberos SRV _kerberos._tcp.ad.home.arpa record verified ok, sample output: > > > > Server: 192.168.183.1 > > > > Address: 192.168.183.1#53 > > > > > > > > _kerberos._tcp.ad.home.arpa service = 0 100 88 kronos.ad.home.arpa. > > > > Samba is
2012 Jan 16
6
Sound not working properly on Xen Dom0, but works on native
Hi, I''m doing some testing on Ubuntu 12.04 Alpha. All sounds comes out as static on the Dom0 system. (I can PCI passthrough the audio card to a DomU and that works). Native sound works fine. Linux kronos 3.2.0-8-generic-pae #15-Ubuntu SMP Wed Jan 11 15:34:57 UTC 2012 i686 i686 i386 GNU/Linux Here is the "ubuntu-bug audio" generated report:
2019 Nov 10
2
Invalid PTR record in reverse lookup zone
Hello, I have configured an samba AD DC for use with some windows and linux machines. The linux machines use samba for user auth and also as kerberos kdc for nfs mounts. This works fine so far but after a while the user can not access the nfs shares anymore. I tried to analyze the problem and finally found, that the obtaining a ticket for nfs service failes in this case because of a wrong
2002 Mar 05
4
2.2.3 W2k
Oops I forgot to add: (with w2k client) does samba 2.2.3a work as a PDC with a w2k machine connecting to it???? Thanks again John -------------- next part -------------- HTML attachment scrubbed and removed
2009 Jun 22
5
has_many through , or habtm , using form
i think there ara two ways of relate products and categories , basically i want to fix one product(e.g hp dv7....) to some categories (notebook,17"notebooks...) i made a table named categorization(incuding category_id,product_id fields) then in models i write these codes below class Product < ActiveRecord::Base has_many :categories, :through => :categorizations
2009 Aug 19
10
acts_as_list / acts_as_tree / acts_as_nested_set - which one
I am creating forum application which needs usage of acts_as_list or acts_as_tree or acts_as_nested_set. I am unable to decide among these. please could some one recommend from their experience? -- Posted via http://www.ruby-forum.com/.
2009 Oct 27
14
Authlogic Password confirmation is too short Error. NEED HELP.
Hi: I am using authlogic, and following railscast tutorial. I am running into this error code with the password confirmation. authlogic password confirmation is too short Has anyone experienced this error? I need your help. Thanks in advance for your help.
2009 Aug 13
10
default value if textfield is empty
Hey all, im not sure where to set a default value if a textfield is empty? For now i do it in the controller, and check if the submitted parameter is blank. But this seems not to be the best solution... Thanks for your help! -- Posted via http://www.ruby-forum.com/.
2010 Aug 30
16
<b> tag in HTML 5 (was Re: Re: assert_select for <p><b>text</b>value</p>)
On 30 August 2010 15:47, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > Colin Law wrote: >> I have the following html >> <p><b>text</b>value</p> >> I can use >> assert_select "p>b", "text" >> to check the text portion, and >> assert_select "p", "value"