thread by: nesko |
last post Apr 29 '10 by: nesko
Hi!
I have just added login feature to my rails application by following the
instructions from "Agile Web Development with Rails" but now I am getting
strange error (looks to me like some kind of routing problem) under the
passenger/apache. It is working fine under webrick.
The error is:
500 Internal Server Error
The server encountered...
|
thread by: divyakgowda |
last post Aug 5 '08 by: acoder
Hello,
For my ruby on rails application,i need to delete all the temporary files created in /tmp folder.If those files increases, at some point in time, my application stops working unless i delete all session files manually.Is there any way, so that i can keep on deleting those files from the folder automatically or somehow.Please help if...
|
thread by: vermarajeev |
last post Jul 31 '08 by: improvcornartist
Hello All,
How do I display ASCII values from A..Z?
I tried the following but get some compiler error:
def DisplayAscii()
for index in 'A'..'Z' do
puts ?index
end
end
|
thread by: navneet7 |
last post Dec 11 '08 by: improvcornartist
I am designing a form (in windows) and I wish to import the names of checkboxes from a database. Can please someone help me out with this?
|
thread by: idealfellow |
last post Mar 5 '08 by: chandrabhanu
Hi Guys,
I have tried out several ways to connect to my MYSQL database thru Ruby on my windows machine.
I have used ruby-mysql, mysql-ruby, ruby DBI....but havent been lucky so far,
is there any installer kind of a thing to do this stuff!
""I get the following error - mswin32-ruby16.dll was not found""
Can anybody guide me...
|
thread by: idealfellow |
last post Feb 4 '08 by: idealfellow
Hi All,
Is there anyway i can call windows Batch file from ruby program.
I tried the following line, it failed :
cmd.exe /c C:\Documents and Settings\user\Desktop\RUN.bat
Suggest me if you have an answer for this.
Cheers
|
| |
thread by: rpcchandu |
last post Oct 7 '10 by: MMcCarthy
Hi Coders,
I have to redirect from my server to the different server page by simulating the POST method submit from the Controller file, I tried using post_via_redirect, but could not succeed... though redirect_to just redirects to given URL, I need to pass parameters using POST.
Configurations:
Rails 1.2.3,
ruby 1.8.6 (2007-03-13...
|
thread by: ssharma |
last post Nov 2 '12 by: Frinavale
I am using ruby on rails.
Hence through my controller I am fetching the list of data(query strings saved in the database) on the basis of some condition. Now I need to execute these queries.
Do any one know how to do this?
|
thread by: mpundu |
last post Jan 14 '08 by: improvcornartist
This is my form:
===========================
<% form_tag :action => 'update', :id => @book.id, :title => @book.title,
:price => @book.price, :description => @book.description %>
<%= render :partial => 'form' %>
<%= submit_tag 'Edit' %>
<% end %>
===========================
|
thread by: susinthaa |
last post Mar 6 '09 by: improvcornartist
Hi,
I am trying to install watir (ruby gem).
But I am getting the following error:
ERROR: While executing gem ... (RuntimeError)
Error instaling watir:
watir requires win32-process >= 0.5.5
Please help me to install the watir.
|
thread by: idealfellow |
last post May 4 '09 by: improvcornartist
I have written ftp code which will download a single file from the
Server using the below code:
require 'rubygems'
require 'net/ftp'
require 'fileutils'
URL = 'IP address'
username = 'test'
passwd = "test"
|
thread by: littlemaster |
last post Jun 11 '10 by: improvcornartist
I have the following code, it is sending text message. I want to attach a file. How to do that?
require 'net/smtp' # plain mail
smtpclient = Net::SMTP::new( '192.168.1.1' ) # create new object to send mail
the_email="From: ruby_using_smtp@webdevel.co.in\nTo:xxxx@bksys.co.in\nSubject:Birthday \n\n"+"This is for demo" #Frame a mail...
|
thread by: mikado |
last post Nov 21 '08 by: improvcornartist
Hi,
I want to access the gmail account through net/pop library and I try this example :
Class: Net::POP3
However,I have a timeout error such that:
c:/ruby/lib/ruby/1.8/timeout.rb:54:in `rbuf_fill': execution expired
(Timeout::E
rror)
from c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'
|
thread by: jabirahmed |
last post Oct 1 '07 by: Colloid Snake
any idea which is the best ??
|
| |
thread by: Mohamed Muneer Selim |
last post Sep 8 '07 by: Mohamed Muneer Selim
can ruby access, existing MySQL databases to modify
(add information, search or running queries)
if yes please let me know
|
thread by: mpact |
last post Feb 20 '08 by: improvcornartist
Not sure if I should post it under Ajax or RoR - I am building an RoR application and used link_to_remote or remote_function to return a form in a span/div . It works well in FF but not in IE. Whenever there is "<form> tag" in the text returned it screws. Any suggestions?
|
thread by: Ann Maybury |
last post May 8 '11 by: Ann Maybury
In the wxruby samples there is a file called dialogs.rb.
When setting up the menu on the windows a bunch of lines of the form
file_menu_append (DIALOGS_CHOOSE_COLOR, "&Choose colour")
exist. What does the ampersand inside the string do?
Ann
|
thread by: superjacent |
last post Oct 17 '07 by: glennswest
I'm relatively new to Ruby and I'm totally confused as to what the best/easiest setup is. What I want to do is write GUI programs and in particular convert a RealBasic program (that I wrote) that accesses and manipulates MySql databases. I'm a Windows Vista user.
Coming from RealBasic everything was contained in the one program so there wasn't...
|
thread by: gingerphil |
last post Sep 29 '09 by: hamartrom
I am having problems raising a matrix to a negative power. I am relatively new to Ruby, so please forgive me if I have missed something obvious.
The software I am using is basically a GIS-type that allows ruby coded interrogation/assignment of its input. It has a class called OtMatrix that seems to be preventing me from applying a negative...
|
thread by: JamesR |
last post Feb 19 '10 by: Moe1
Hi trying to install rails, but get this error...
C:\ruby>gem install rails --include-dependencies
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - c:/ruby/bin/rails
Can anyone help?
OS is Vista.
|
thread by: paulus4605 |
last post Jan 22 '08 by: mylocaldentists
dears since I'm new to ruby I try to create a form within ruby on rails.
this is my controller
require "player"
class SpelersController < ApplicationController
def index
@speler = Speler.find(:all, :order => 'RAND()')
end
|
thread by: idealfellow |
last post Jan 22 '08 by: improvcornartist
Hi All,
I have stored contents of a table as a variable as shown below:
partner_table = get_table("//table.1.1")
Now i need to write the contents of "partner_table" into a TEXT file.
There is should be some way, does it require file.open command!!
Hoping to hear from you soon.
Cheers
|
| |
thread by: paintballer |
last post Feb 8 '08 by: improvcornartist
I'm a Ruby n00b trying to write a simple app, and I've been trying to find a way to do this for a while, but can't seem to find anything. Here is essentially what I want to do:
if array contains 1,2,3 or 4,5,6 then
execute this code
But the array may have many more numbers in it than that, and they won't be in the same order. All...
|
thread by: divyakgowda |
last post Jul 2 '08 by: improvcornartist
Hello,
I am referring the link below for creating the ruby reports.For creation of report_table, query is used for selecting only particular table.If i query the report_table, am getting error as "undefined method slice! for Hash".
Ex:
1. Author.report_table(:all, :only => )
If i use like this.I am getting error.
2....
|
thread by: divyakgowda |
last post Apr 11 '09 by: improvcornartist
Hello everyone,
My problem is, i am uploading a zipped file and extracting the contents and saving in a directory.How can i check whether the uploading zipped file contains only .swf files inside, before or after extraction.Please help how can i do this? Its urgent.
Thanks,
amulyab
|