[Rails] Re: Daily / Monthly Report

2012-05-15 Thread dsadaka
This is your basic cross-tab report. However, since you did not provide a layout of your table(s), it's not really possible to help you with the query. So, perhaps this will help: http://www.simple-talk.com/sql/t-sql-programming/creating-cross-tab-queries-and-pivot-tables-in-sql/ or you can

[Rails] Re: how to append to models errors collection?

2012-02-24 Thread dsadaka
Assuming both instance vars have bene instantiated correctly previously... @user.errors.each { |k,v| @post.errors.add(k, v) } if @user.errors.any? should do it. HTH, Dan On Feb 23, 10:48 pm, S Ahmed sahmed1...@gmail.com wrote: I want to append to my models error collection from another models

[Rails] Re: How to get the currently required controller name

2011-08-25 Thread dsadaka
If you mean the calling controller... params[:controller] HTH, Dan On Aug 24, 11:26 pm, coolesting coolest...@gmail.com wrote: Hi , could i get the controller name in controllers/application_controller.rb file ? Thanks guys. -- You received this message because you are subscribed to the

[Rails] Re: error while installing ruby with rvm on snowleopard

2011-07-27 Thread dsadaka
Sounds like DNS issue or the host is down. Can you ping production.cf.rubygems.org? -D On Jul 27, 1:15 am, Aashish Kiran li...@ruby-forum.com wrote: I am getting some weird error while installing ruby with rvm on snowleopard. Can anyone help me out with this. Retrieving rubygems-1.8.6

[Rails] Re: Deploying RoR apps from different branches

2011-07-27 Thread dsadaka
I use capistrano and I don't have to worry about any of that. Sure it copies the branch to a cached area on the web server as well as to the live area. Setup is very simple. Have you tried it? HTH, D On Jul 26, 10:59 am, BirdieTracker ron.guari...@gmail.com wrote: I have a multi-environment

[Rails] Re: Ruby on Rails for Tablet Computers (Android OS)

2011-04-01 Thread dsadaka
android I think. Maybe have some backend to dump the data using some rest API. Any advice for taking such a route? On Mar 31, 2:18 pm, dsadaka d...@web-site1.com wrote: As opposed to running the server on the handheld, have you looked at writing an app using Mirah? It's very, very

[Rails] Re: Ruby on Rails for Tablet Computers (Android OS)

2011-03-31 Thread dsadaka
As opposed to running the server on the handheld, have you looked at writing an app using Mirah? It's very, very ruby-like. Mirah is a simpler Java, a Java that is fun to work with. Best of all, it is also already fully functional, and is just a simple gem install away: --

[Rails] Re: Multiple rails versions at one passenger

2011-03-16 Thread dsadaka
Norbert, You can install multiple Ruby stacks on the same machine using RVM. (Ruby Version Manager) However, to run more than one version of Passenger, you'll have to fire up another instance of your web server and use a proxy pass. Excerpt from

[Rails] Re: chnging colour of table rows

2011-01-24 Thread dsadaka
Michael, Helpers go in rails_root/app/helpers. Look in there. If you used scaffold, You should have files for controller specific helpers and a global helper file named application_helper.rb HTH, Dan On Jan 24, 1:02 pm, Michael Baldock li...@ruby-forum.com wrote: Thanks guys, got it going

[Rails] Re: Problem with relative URLs and AJAX requests.

2011-01-22 Thread dsadaka
Kai, I've gone through this same headache. I too wanted to use a helper but couldn't. Have you considered using content_for in view and then reference it in the head section of the layout to generate the javascript? I couldn't do it that way because I was doing AJAX calls so the head section

[Rails] Re: jQuery vs Prototype re: Rails' helpers

2011-01-06 Thread dsadaka
If your converting to Rails 3, you'll need to change your code anyway. There are no more remote-specific tags. Instead, the tag names are the same as a normal action. Instead, you'll add a :remote = true. So... while you're at it, I strongly suggest you change to jQuery. HTH, Dan On Jan 6,

[Rails] Re: Spree drag and drop: not recognizing JS - solved

2010-12-30 Thread dsadaka
I solved this by adding a post products/add_to_cart to the routes.rb -Dan On Dec 24, 1:37 am, Dan Sadaka li...@ruby-forum.com wrote: Greetings, I asked this over at the Spree google group but got no response.  I'm hoping someone here might have experience with this. I am implementing a

[Rails] Re: form_tag not passing a js call in Rails3

2010-12-16 Thread dsadaka
I'm sure you checked this but just in case... based on what you just said, check to make sure you haven't disabled JS in your browser. Put a Hello World script in Application.js I'm using jQuery in Rails 3 with Ruby 1.9.2 and it's working fine: I use %= javascript_include_tag :default % with

[Rails] Re: Problem with mysql2

2010-12-13 Thread dsadaka
https://github.com/brianmario/mysql2 On Dec 12, 7:27 am, Jatin kumar jatinkumar.n...@gmail.com wrote: Still, could someone list the difference between the old mysql gem and new mysql2 gem?? Why use the new one?? On Sat, Dec 11, 2010 at 1:44 PM, Paul Bergstrom li...@ruby-forum.comwrote: A

[Rails] Re: editors available for designing for ror..

2010-11-28 Thread dsadaka
I vote for TextPad on Windows. You can download a syntax file for color coding, it was a file explorer built in, which works well with the Rails directory structure. I also use the Find in Files option often. Of course, I've been using TextPad for over 15 years so I might be a bit biased. On

[Rails] Re: Why Ruby on Rails?

2010-11-04 Thread dsadaka
Do you have hair on your knuckles? :-) On Nov 3, 3:22 pm, Daniel Shimoyama shimoyama.dan...@gmail.com wrote: Am I gay? I'm using rails right now =) 2010/11/3 David Kahn d...@structuralartistry.com On Wed, Nov 3, 2010 at 11:52 AM, Ruby Me li...@ruby-forum.com wrote: Hi everyone, I

[Rails] Re: Why Ruby on Rails?

2010-11-04 Thread dsadaka
It worked for Ricky Martin. On Nov 3, 3:51 pm, Daniel Shimoyama shimoyama.dan...@gmail.com wrote: I'm going to my mom Mom i'm rubyist Oh my son, i'm so proud of you! 2010/11/3 David Kahn d...@structuralartistry.com On Wed, Nov 3, 2010 at 1:22 PM, Daniel Shimoyama