Displaying 20 results from an estimated 1000 matches similar to: "ruby equivalent of isset()"
2006 Apr 06
6
Flexible data schema in a database?
I figured I pose this to the list and see if any one can build a
better mousetrap.
The problem:
1. Store hierarchical data in a database, but without knowing the
hierarchy beforehand.
2. Allow the user to define there own hierarchy, and allow the system
to support multiple hierarchies.
Call it a cataloging system, we have an object and we want to add data
about that object to the system.
Now
2006 Apr 03
7
global variable - @@var
I tried to keep track of the number of access to a specific controller.
I declared ''@@mycount = 0'' in the controller class. The methods in the
controller will increment the @@mycount (@@mycount = @@mycount + 1) and
print the value to the html page and show in the browser. The value is
always 1, no matter how many times I access the controller and its
action(s). Is this
2005 Apr 01
11
I want to blog!
This isn''t Rails or Ruby related, but I just need some advice and
thought I''d ask the bright individuals here. I want to start my own
blog but I''m not sure where to begin. I don''t want to get a blogger
account because I want to have my own domain. Blogger also doesn''t
have many features. My hosting service is 1AND1 so it supports php,
cgi and mysql.
2006 Jan 31
4
Rails to Java
Hello,
I just started playing with RubyOnRails. It is indeed fascinating! I
have a question about using rails models to connect to backend Java
(i.e. EJBs) instead of database.
Any pointers will be appreciated.
Thanks and Regards,
Khaled
--
Posted via http://www.ruby-forum.com/.
2006 May 05
16
Diff tool for OSX
I''ve looked for DIFF tools for OSX but haven''t found anything good
yet. Tried guiffy (http://www.guiffy.com) but it''s very slow and the
folder comparison doesn''t indicate a change until you drill down to
the level with the difference which kinda defeats the purpose.
I''m missing TortoiseSVN and the diff tool that comes with it. Any
suggestions for
2006 Apr 10
9
Pagination with letter (A B C D ... Z)
Hi there,
Is there a neat and easy way to implement pagination with letters
rather than numbers eg :
A B C D ... Z
Rob
2014 Oct 13
3
[LLVMdev] RFC: variable names
> If we are going to change how we name variables, I very much want them to
> not collide with either type names or function names. My suggestion would be
> "lower_case" names.
>
> This also happens to be the vastly most common pattern across all C++ coding
> styles and C-based language coding styles I have seen.
STL has "lower_case" functions, and exposes
2006 Apr 11
6
Google Base... in Rails?
Ok, so this is kinda out of the blue... but I''ve been looking at
Google Base and thinking that it''s got some really good ideas in it.
Especially the way you can create your own "type" of item with its own
custom attributes, like date range, location, number, text, etc. Kind
of like defining a database with a GUI, but not exactly.
It seems really interesting to me, from
2006 May 29
3
File.size() on Uploaded Images Fail
I am checking the file size of an uploaded file and storing it in a filesize
column. It will work just fine when the user uploads any files other than
images (jpg,png,gif).
Word, Excel, Powerpoint, .zip and more all work fine.
This is my model asset.rb that handles the file upload.
def newfile=(newfile_field)
self.filename = base_part_of(newfile_field.original_filename)
self.filetype
2006 Feb 23
11
Sessions question
Hi, I''m a little confused about sessions. I have two objects, object
"Apple" and object "Banana". These two objects have an N:M
relationship. What I am doing is listing All of the Banana objects that
are associated with a single Apple, then below that listing all of the
Banana objects not associated with that same Apple. The user is then
allowed to change the
2006 Jan 10
14
Not wishing to instigate a DB war, but...
Can I get some opinions on which free DB to use with rails for a virtual
server that will eventually be doing lots of heavy database lifting?
Not a lot of heavy duty querying per se. Think multiple simultaneous
forums and blog sites and the like.
I know each of the different DB possibilities such as MySQL and
PostgreSQL has plus points and minus points. I''m particularly
interested
2001 Oct 04
2
about the char _
Dear all,
I don't know the historical reason why the char '_' was
defined in the R language grammar as a synonyme of the
assignment <-, anyway the R documentation dosen't recommand
its usage.
Well, this is a real "incompatibility issue" each time
we need to interface R with other language/systems, notably with
database systems. Recall that, in perhaps all
2006 Feb 05
26
Ruby on Rails and other sites use PHP?
I can''t think of a good reason, other than it''s legacy code which hasn''t
gotten around to being changed to RoR.
http://rubyonrails.org/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
http://37signals.com/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
http://basecamphq.com/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
http://backpackit.com/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
2006 May 24
5
best way to return JSON?
I''m using Ajax.Updater to update a select element, and have just discovered
that IE doesn''t like having its innerHTML set. I figure instead of a bunch
of option tags I can return JSON and parse it to add the options, but I''m
not quite sure of the best way to do this.... or any way to do it really :)
Could someone point this out to me? Or am I using a totally antiquated
2005 May 17
2
ajax insertion sort
Is there support yet for adding something to a list in sorted order?
For example, you have a form to add a new item and you want the new
item to be inserted in the list in the proper order. I''ve noticed
the :position option in the form_remote_tag but it doesn''t seem like
you can use it to keep things in sorted order.
Rod Schmidt
http://rodschmidt.blogspot.com
"Do or
2006 Jan 12
17
Application.rb params
I need to check if a parameter is set so that I can build some information
for my application, but No matter how I format my if statement in the file "
Application.rb" it return the following error.
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]
Here is the line
if params[:day]
So we
2006 Feb 06
1
Traversing an object / array?
This is a very basic question but I cannot find the ''right'' answer.
What is the best way to traverse an object / array with ROR.
I need to look at the structure of some of the objects/ arrays but not sure how to go about it.
I appreciate your assistance.
Thanks
Frank
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty
2006 Jan 07
2
hosting with Pair : Rails'' app dies after a few seconds
First of all thanks a lot to the guys who answered the other topic.
Host: Pair Networks - FreeBSD v.4.8-Stable - peulik.pair.com
PHP and MySQL services running (is this a problem?)
First of all, after I establish the ssh connection I''ve to type, as I
mentioned in the old thread,
GEM_PATH ~/lib/ruby/gems/1.8
otherwise the ruby installation is not found.
position of the executable:
2007 Jan 12
4
FW: Get dialed numbers in AGI
On 1/11/07, Mike D'Ambrogia <miked@jamagination.com> wrote:
>
> Ralph
>
> Kind of new to asterisk, and really new to AGI but it looks like you were
> trying to have the AGI script tell asterisk to read and lay the results into
> my_var and then regain control in the AGI script, is that correct?
>
> If so I don't think that will work since the dialplan
2006 Jan 26
5
ruby and perl
Hello Community,
is it possible to include perl scripts into a ruby view (.rhtml)?
If yes, the structure has to be /public --> /cgi-bin like in a web
application with cgi scripts?
Best regards,
Mathias
--
Posted via http://www.ruby-forum.com/.