similar to: Join Queries? - find() or find_by_sql()

Displaying 20 results from an estimated 400 matches similar to: "Join Queries? - find() or find_by_sql()"

2006 Feb 08
2
What page is an item on?
Using the paginator helper, is there a way to determine what page an item in the collection is on? Thanks in advance for your help!
2006 Apr 07
2
Re: Re: page.replace_html "#{var_containing_id_name}", :partial
> you mean like this? > > def do_some_ajax_thing > <at> element_id = "content_div" > end > > do_some_ajax_thing.rjs > > page.replace_html <at> element_id, :partial => "edit" > > remember, the view templates have access to the attributes defined > in the controller Actually, its more like this: I have a list page. Each row
2006 Aug 01
2
Active Merchant or Payment module?
Which do you guys prefer for credit card processing? Both look like they get the job done. -- Is there any consensus on which one is better? Are there other credit card processing solutions I''m not aware of? Any thoughts or suggestions would be most welcome. Thanks! : ) Jason -- Posted via http://www.ruby-forum.com/.
2006 Apr 07
2
Re: page.replace_html "#{var_containing_id_name}", :partial
Jeff Coleman <progressions@...> writes: > > Jason Tuttle wrote: > > The subject line says it all. -- Is there a way to do something like: > > > > page.replace_html "#{var_containing_id_name}", :partial => ''edit'' > > > > That line of code does not work, but I would like to pass the name of > > a variable to
2006 Apr 05
9
Is eval the only way?
Hi, I''m trying to write some methods which use a parameter to represent a Class name. A very simplistic example: def foo(class_name, conditions) x = class_name.find(:all, :conditions => "#{conditions}") end Unfortunately, this does not work. The only way around this problem that I can think of is to use eval: def foo(class_name, conditions) x = eval
2006 Apr 07
2
page.replace_html "#{var_containing_id_name}", :partial => ''edit''
The subject line says it all. -- Is there a way to do something like: page.replace_html "#{var_containing_id_name}", :partial => ''edit'' That line of code does not work, but I would like to pass the name of a variable to page.replace_html. This variable would contain the id of the div I want to update. Anyone know if/how I could do that? Thanks! : ) Jason
2008 Aug 28
2
Getting started developing for Wine.
Hi, I'm a Windows developer and recent Linux convert! The Wine project is very interesting to me, and instead of just waiting around for others to make improvements, I'd really like to start investigating and making my own fixes to some of my favorite Windows applications so that I can enhance the Wine experience, as well as become more familiar with Linux (and open source) development in
2006 Apr 07
1
Re: page.replace_html "#{var_containing_id_name}",:partial
On 4/7/06, Chris Hall <christopher.k.hall@gmail.com> wrote: > page.replace @user.id, :partial => "edit_form" Thanks a lot Chris. -- Unfortunately, it didn''t quite work when I tried it that way. However, when I tried it this way: page.replace_html "#{@user.id}", :partial => "edit_form" It worked! Thanks again!! : ) Jason
2008 Aug 22
8
Mac OSX (10.5) & wine w/ OpenGL - Info & Issues
Firstly, hello everyone! I'v been using wine under OSX for some time, using macports to install it and it works quite nicely (except for an issue with windows sliding down the screen, which can be fixed by setting a desktop area in winecfg). Sadly I'v not been able to get OpenGL support working. (I am using OSX 10.5.4 with XQuartz (http://xquartz.macosforge.org/trac/wiki) 2.3.0, which is
2010 Nov 24
1
thought this was about the drink
I am such a n00b I did not think about this as an application. What is wine for anyway care to share and educate a person who seems to be lacking the proper knowledge ? Would a kind soul mind pointing me in the right direction to forums for the drinkable wine ? I would like to check some reviews of my favorite winery. Sorry about the confusions!
2010 Aug 03
4
Lucerne
AKA, the Unified Kernel Project, out of China! This patches the linux kernel to provide windows kernel-level services in parallel to linux services and patches wine to use these rather than emulate them. Anyone used, had success with this? Worthwhile? Patching kernels, while not for all newbies, is fairly quick and hopefully painless, at least in Debian. Patching wine is a big job. Since any
2013 Jun 18
33
DomU suspension/hibernation
Hey, I thought there was supposed to be an ability for domU''s to be put into a hibernated state (E.g. current running tasks and memory) when dom0 is shutdown or rebooted. When I look in my /etc/default/xendomains file, I have the variable''s "XENDOMAINS_SAVE=/var/lib/xen/save" and "XENDOMAINS_RESTORE=true". However, when I reboot, I always have to restart my
2009 May 12
1
Starcraft install won't run
Hello fellow wineries! I am not new to Linux, have been using a few years now, however I am not an expert my any means either. I am attempting to run Starcraft (Blizzard) in wine on my Debian system. The install will not run. I have tried several different compatibility types (win95, win98, XP among others) but with no avail. The install.exe (or setup.exe) on the cd will not run. It opens up
2004 Nov 19
14
FAQ 32
What changes would I need to make if there is a 4th interface that is going to a DMZ Thanks Gene
2006 May 09
7
When to use optimistic locking?
Hi All, I''m having some trouble deciding when and how to implement optimistic locking. Let''s say I have a multiuser Rails app, and let''s say it stores, among other things "vital" customer information. The standard methods created by the Rails generate scaffold script look like this: def edit @customer = Customer.find(params[:id]) end
2011 Jun 30
4
Trying to learn Wine and command lines
Hi, I'm new to Wine and command lines in general and I'm trying to learn how to use it. To start I installed the demo for Armageddon Empires (a seriously awesome game, check it out) and now I'm trying to run it. When I'm in my Wine program files I can see a folder called Cryptic Comet (makers of Armageddon Empires) but when I try to cd or any other command to get to the Cryptic
2006 Apr 17
3
How To Remove Unnecessary Controllers?
Hi All, I''ve got some controllers in my project which I no longer need. -- They were generated by scaffolding. Is there an easy way to remove them? -- I.E. via the command-line. If not, is there a way to do it manually? Thanks! : ) Jason
2011 Apr 05
4
Re: Installing NWN on MacOS 10.5
Xquartz problems is one reason in Wineskin Engines I have a custom built version of Xquartz... it doesn't use your systems installed X11 or Xquartz version... much like Crossover builds in their own X server as well. As to getting it to work in Wineskin... the NWN wrapper I made that is around comes with directions on how to get the game inside of it... then its just a mac app. Its not
2011 Nov 22
1
Re: Mac OS X 10.5 compatibility?
I'm trying to build a custom engine under Winery 1.3 on OSX 10.5 and I'm getting the same error that doh123 reported originally. Doh123, I noticed you released WS8Wine-1.3.33 which works on OSX 10.5. How did you get this to compile? Did you compile on 10.5? I can compile 1.3.33 using Winery 1.3 on 10.6, but it crashes when used on 10.5. We're working with a custom build of the wine
2014 Jul 18
2
[LLVMdev] Running an LLVM pass during an android compile
We have developed and tested an optimization pass using LLVM, and have been able to build other software such as gzip while running our pass by passing "clang" and "-Xclang -load -Xclang <path to .so>" as configure options. Now we would like to try and build android while running our pass only on certain files. It seems that android has its own version of LLVM built into