Thanks for the reply.
get each month data between year. ie [ 2010-12-13 to 2011-12-13]. here i
got this current date and last date in rails. have any idea to select
that? i have to fetch the data in each month from database?
Thank you
vishnu
--
You received this message because you are
On 13 Dec 2011 08:08, amvis vgrkrish...@gmail.com wrote:
any idea to select that? i have to fetch the data in each month from
database?
Yes. what have you tried?
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group,
*Date.today.month or Time.now.month* to get the month then how will continue.
i think about that on how to continue. But i can't proceed. i need to take the
each month report from the one year.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
Dear all,
I am new to this web application development and have no
previous background. I need to develop a web application which does
the following duties.
1) Take a txt file as input from the clients.
2) Use this input and run a set of C++ programs at the server side.
3) Create a pdf file
hi
i m new to rails and i m facinga problem with radio buttons. i need to
create a portal with multiple choice question. i m using html here.
once i submit the answer the page is getting refreshed and the
selected radio button is also refreshed. and is show a page with no
radio button selected.
On Dec 12, 8:23 pm, zigomir ziz li...@ruby-forum.com wrote:
This is crime.
Dunno why are you having this level of issues. On a fresh installation
of Windows and RailsInstaller I was able to use execjs with the
Windows Scripting Host by default without issues.
There was no need to install node,
*select count(*)
from (
*
* SELECT loyalty_id FROM transactions
GROUP BY loyalty_id
HAVING COUNT(*)1
*
*) as t
*
problem when writing the corresponding rails queries...? I am using *
Rails2.3.11*
Also this have error *select sum(points) from transactions where
transaction_type
On Tue, Dec 13, 2011 at 8:31 PM, amvis vgrkrish...@gmail.com wrote:
*select count(*)
from (
*
* SELECT loyalty_id FROM transactions
GROUP BY loyalty_id
HAVING COUNT(*)1
*
*) as t
*
problem when writing the corresponding rails queries...? I am using *
Rails2.3.11*
Also
Thanks for the reply..
sorry, that made a mistake when i post here. that query had't an id. i
think the problem with rails version..? am using rails2.3.11.
This is mysql query *select sum(points) from transactions where
transaction_type =new_customer or transaction_type= review or
Fred,
Thank you so very much for your response.
If I am understanding you correctly, you are confirming my conclusion
that the only way to use temporary tables with sqlite3 and mysql is to
use raw SQL.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
On Dec 12, 11:35 am, Frederick Cheung frederick.che...@gmail.com
wrote:
On Dec 12, 3:42 pm, Chloe Koh pehwah@gmail.com wrote:
Hi guys, I need some help with my ruby on rails application. I want to
upgrade it from rails 1.8 to rails 3. Can anyone help me?
There is no rails 1.8 (rails
On Dec 13, 2011, at 1:11 AM, Reva wrote:
hi
i m new to rails and i m facinga problem with radio buttons. i need to
create a portal with multiple choice question. i m using html here.
once i submit the answer the page is getting refreshed and the
selected radio button is also refreshed. and
I would go ahead and code the input type=number element from HTML5, then
provide a fallback for visitors whose browsers don't understand that element.
Here's a Prototype.js solution, modify if needed to jQuery depending on your
environment:
//include prototype.js before this point
On 12 dic, 16:28, Angelo Cordova acord...@gmail.com wrote:
Hello people
I need your help again.
What I want to do is make a text field accepts only numeric values...
Thant's means if I press a letter or a simbol the text field should
not be filled, it should be just if I press a number.
Hi everyone,
I just need a quick help :)
What is the best way to write some code in :presence option?
I have a Question model and one of the fields is question_type:
- example question
- static question
Each question has alternatives, and each of them has scores
What I want is to validate
I have Company has_many :categories and Category has_many :companies.
One Company for an associated Category has classifications, example:
Company-1 has Category OG1 with Classification_type I
Classification_amount 10.000 and Classification_type II
Classification_amount 50.000.
Is that a good
Typo, left out a trailing parenthesis:
//include prototype.js before this point
document.observe('dom:loaded', function(){
var test = new Element('input',{type:'number'});
if(test.type != 'number'){
$$('input[type=number]').each(function(elm){
elm.observe('blur',function(evt){
Well I found the code here:
http://stackoverflow.com/questions/1673812/rails-validation-for-users-email-only-want-it-to-validate-when-a-user-signs-up
validates :score, :presence = true, :if = Proc.new{ (some code
here) }
--
You received this message because you are subscribed to the Google
module ActionController
module UrlFor
extend ActiveSupport::Concern
include AbstractController::UrlFor
I have read the rails source.In the actionpack/lib/action_controller/
metal/url_for.rb
def url_options
@_url_options ||= super.reverse_merge(
:host = request.host,
Hi all,
I'm using Ubuntu 11.10 and the terminal to install and run Rails. Here
is the process I've taken so far to setup Rails:
download and install Ruby 1.9.2 and Rails 3.1.0
-- I did this using 'sudo apt-get ruby1.9.1' and 'sudo gem install
rails'
I made a new rails app using 'rails new
On Dec 12, 2011, at 6:34 PM, gato pardo wrote:
I should remenber that there are no great differences between
development and production section in the database yml file.
# config/database.yml
development:
adapter: postgresql
encoding: unicode
database: db_album
Internet references are years out of date and links to downloads broken.
Is Rails on IIS dead?
We need to make a development decision and right now the situation it
looks dire for Ruby on Rails... We could do with a straight answer.
--
Posted via http://www.ruby-forum.com/.
--
You received
On Dec 13, 2:28 pm, blackspace weiwuf...@gmail.com wrote:
what mean the script_name?where define the script_name?
It's part of the environment you get from rack / your web server
(apache, nginx etc.). I'd check either the rack source or the
documentation for your web server for its precise
What is IIS?
On Tue, Dec 13, 2011 at 12:16 PM, John Doe li...@ruby-forum.com wrote:
Internet references are years out of date and links to downloads broken.
Is Rails on IIS dead?
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post
On 13 December 2011 17:16, John Doe li...@ruby-forum.com wrote:
Internet references are years out of date and links to downloads broken.
Is Rails on IIS dead?
Was it ever alive?! :-/
We need to make a development decision and right now the situation it
looks dire for Ruby on Rails... We
Rails 3.1.x
2 questions... Perhaps I am doing this too much in the raw of jquery but I
can't seem to find any other way to do these things
1 - drag_drop.js has...
$.post( groups/add_member/, { add: ui.draggable.text() } );
which is almost everything I want but I want to add
On Dec 13, 2011, at 12:16 PM, John Doe wrote:
Internet references are years out of date and links to downloads broken.
Is Rails on IIS dead?
We need to make a development decision and right now the situation it
looks dire for Ruby on Rails... We could do with a straight answer.
Do any of
On Tue, Dec 13, 2011 at 12:21 PM, Michael Pavling pavl...@gmail.com wrote:
On 13 December 2011 17:16, John Doe li...@ruby-forum.com wrote:
Internet references are years out of date and links to downloads broken.
Is Rails on IIS dead?
Was it ever alive?! :-/
We need to make a development
Kevin Bedell wrote in post #1036546:
What is IIS?
Your are kidding, right?
--
Posted via http://www.ruby-forum.com/.
--
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
On Tue, Dec 13, 2011 at 11:17, Mauro mrsan...@gmail.com wrote:
I have Company has_many :categories and Category has_many :companies.
One Company for an associated Category has classifications, example:
Company-1 has Category OG1 with Classification_type I
Classification_amount 10.000 and
On 13 Dec 2011 17:31, John Doe li...@ruby-forum.com wrote:
Kevin Bedell wrote in post #1036546:
What is IIS?
Your are kidding, right?
Why should he be?
This is a Rails list; if you asked on a .Net list whether C# apps could be
deployed with Passenger, some people there might ask what
On 13 December 2011 17:40, Michael Pavling pavl...@gmail.com wrote:
This is a Rails list; if you asked on a .Net list whether C# apps could be
deployed with Passenger, some people there might ask what 'Passenger' is :-/
/s/Passenger/Nginx
...would probably be a better equivalent ;-)
--
You
On 13 December 2011 17:31, DK structuralartis...@gmail.com wrote:
not sure but I hear the folks at
Bloomberg.com develop rails on windows, not sure if they deploy to windows
but maybe that is a lead. But really my experience was a nightmare trying to
deploy on windows.
Windows is not
I appreciate the answers, but, why is everyone asking about my business
case for IIS?
Suffice it to say that I am bound by corporate policy which is now
committed to Microsoft technology. I don't want to get into an argument
over merits of Apache versus IIS but corporate policy perceives
On 13 December 2011 17:56, John Doe li...@ruby-forum.com wrote:
I appreciate the answers, but, why is everyone asking about my business
case for IIS?
Because you're telling us about a problem you have, and we're asking
you to back-up a little...
Suffice it to say that I am bound by corporate
Michael Pavling wrote in post #1036557:
On 13 December 2011 17:31, DK structuralartis...@gmail.com wrote:
Windows is not necessarily IIS - it's perfectly possible to deploy
on Windows (with Apache, Passenger, etc). Deploying with IIS as per
the OP... that's likely to be much harder.
I am
Hi,
You can have a look at
http://www.helicontech.com/zoo/
I used to work with .Net, now I'm developing with RoR (for a
year) from windows platform, and my recommendation will be to stay
with ubuntu + apache server for production, as much as I will
On Dec 13, 2011, at 11:09 AM, John Doe wrote:
Michael Pavling wrote in post #1036557:
On 13 December 2011 17:31, DK structuralartis...@gmail.com wrote:
Windows is not necessarily IIS - it's perfectly possible to deploy
on Windows (with Apache, Passenger, etc). Deploying with IIS as per
On 13 December 2011 18:09, John Doe li...@ruby-forum.com wrote:
However, I am bound by corporate policy to at least explore the
possibility of using the native web server using other options only as a
last resort (i.e. where this can be proven not to be possible or
practical).
Well, that's
Michael Pavling wrote in post #1036562:
On 13 December 2011 17:56, John Doe li...@ruby-forum.com wrote:
Suffice it to say that I am bound by corporate policy which is now
committed to Microsoft technology.
Well, then you won't be using Rails, as it's not MS technology, and
you would be
On Dec 13, 5:16 pm, John Doe li...@ruby-forum.com wrote:
Internet references are years out of date and links to downloads broken.
Is Rails on IIS dead?
We need to make a development decision and right now the situation it
looks dire for Ruby on Rails... We could do with a straight answer.
Hello,
I am trying to this project to work but I ran into this issue, the
project is from a book called Beginning Ruby on Rails E-Commerce: From
Novice to Professional. It references stuff from Rails 1.0. I am still
new at using Ruby and Rails. Thanks for any help.
NoMethodError in
Hi all,
I'm currently working on a screen scraping app using Mechanize and Rails
2.3.4. I have two parts of the app that need to work together. First,
there is a user driven iframe - once the user gets to a specific page on
the website to be scraped, I want the user to be able to press a button
After discovering
http://api.rubyonrails.org/classes/ActiveSupport/Autoload.html
I thought
it'd be nice if we could replace our zillion occurences of:
autoload :Something, 'some_path/something'
with:
autoload_at 'some_path' do
autoload :Something
end
But I keep getting undefined method
Error messages for was removed in rails 3. It was extracted to a plugin, don't
remember exactly what the plugin was called but it's in the rails GitHub repo.
Rails has changed massively since 1.0 - I really would try and find some more
up to date material to work from.
Fred.
Sent from my
Jim.
You are correct, when i show typeof(sites) from when sites = %=
@mapped_sites =
i get object
when i do typeof(sites) after getting sites from the
url_that_returns_json
i get string
i suppose that i am not getting returned correctly.
if i look at the source of @mapped_sites
and from the
A meaty issue for the networking gurus out there. I am using my
development and production environments over a VPN that I have set up
between two office locations. The issue is that my production
application instance runs as fast as I could want, but the development
environment is extremely
On Dec 13, 2011, at 1:34 PM, danm wrote:
A meaty issue for the networking gurus out there. I am using my
development and production environments over a VPN that I have set up
between two office locations. The issue is that my production
application instance runs as fast as I could want,
On Dec 13, 2011, at 1:34 PM, danm wrote:
Any ideas? Does WebBrick send out a lot more data to the browser than
Apache?
I'm going to guess the problem is latency--lots of small requests, which
doesn't show up at all on the local net.
--
Scott Ribe
scott_r...@elevated-dev.com
1 down - 1 to go... can anyone toss me a bone here?
On Dec 13, 2011, at 10:25 AM, Craig White wrote:
Rails 3.1.x
2 questions... Perhaps I am doing this too much in the raw of jquery but I
can't seem to find any other way to do these things
1 - drag_drop.js has...
$.post(
On Dec 13, 2:16 pm, John Doe li...@ruby-forum.com wrote:
Internet references are years out of date and links to downloads broken.
Is Rails on IIS dead?
We need to make a development decision and right now the situation it
looks dire for Ruby on Rails... We could do with a straight answer.
Rails 3.1.x - jquery
drag_drop.js
$(function() {
$( [id^=moveable] ).draggable();
$( #droppable2 ).droppable({
drop: function( event, ui ) {
$( this )
.addClass( ui-state-highlight )
$.post( groups/add_member/, { add: ui.draggable.text() },
function(data) {
On 13 Dec 2011, at 21:07, Craig White craig.wh...@ttiltd.com wrote:
1 down - 1 to go... can anyone toss me a bone here?
On Dec 13, 2011, at 10:25 AM, Craig White wrote:
Rails 3.1.x
2 questions... Perhaps I am doing this too much in the raw of jquery but I
can't seem to find any other
On 13 Dec 2011, at 21:29, Craig White craig.wh...@ttiltd.com wrote:
Works - well, I still need a way to pass @group instance variable in the
'post' string back to controller but in the meantime, I am stuck in that
after the first drag/drop/update I can't do more drag and drop apparently
On Tue, Dec 13, 2011 at 6:07 PM, Craig White craig.wh...@ttiltd.com wrote:
1 down - 1 to go... can anyone toss me a bone here?
On Dec 13, 2011, at 10:25 AM, Craig White wrote:
Rails 3.1.x
2 questions... Perhaps I am doing this too much in the raw of jquery but I
can't seem to find any
On 13 Dec 2011, at 19:54, skrite sh...@skrite.net wrote:
Jim.
You are correct, when i show typeof(sites) from when sites = %=
@mapped_sites =
i get object
when i do typeof(sites) after getting sites from the
url_that_returns_json
i get string
responseText is always going to be text
On Tue, Dec 13, 2011 at 9:00 PM, amvis vgrkrish...@gmail.com wrote:
Thanks for the reply..
sorry, that made a mistake when i post here. that query had't an id. i
think the problem with rails version..? am using rails2.3.11.
This is mysql query *select sum(points) from transactions where
On Wed, Dec 14, 2011 at 12:41 AM, JavierQQ jquari...@gmail.com wrote:
Well I found the code here:
http://stackoverflow.com/questions/1673812/rails-validation-for-users-email-only-want-it-to-validate-when-a-user-signs-up
validates :score, :presence = true, :if = Proc.new{ (some code
here)
On Tue, Dec 13, 2011 at 8:16 PM, Jim Ruther Nill jvn...@gmail.com wrote:
while this may work in your case, you should remember the following (a
shameless copy
and paste from the api)
Finally, the options :if, :unless, :on, :allow_blank and :allow_nil can
be given to one specific
ok, even though the @mapped_sites.to_json works, the output of that
does not look like json. It looks like an array
example:
var sites = [[35.931341,-102.32205,381.75,288.0,AL,AL,
557,#7F7F7F,#FF,287.1,288.3,ALbr0 psi,0],
[35.88125039,-102.3088989,525.0,83.4,DC,DC,
Hi All,
We are working on a rails application using MySQL. It has become
inevitable for us to use NoSQL DB for one of our models. Please note
that performance is not yet the reason for us to move to NoSQL. I have
the following questions:
1. Should we move all the models from MySQL to NoSQL; or
Hi everyone,
I apologize in advance for the newbie question, but I haven't been able to
view any content on the Rails Wiki pages. All I get are the Table of
Contents and the Discussions. I am able to view content when I click on
View Page Source, but obviously this is not ideal.
I'm using
Hello all,
Can anyone point me to any solid documentation on how to set up a
production server using RVM, Passenger, and Apache2? I have been at
this for a week with absolutely no luck at all so I thought I would
post here to see if anyone has managed to get this to work and written
down the
63 matches
Mail list logo