search for: jordanisip

Displaying 17 results from an estimated 17 matches for "jordanisip".

2006 Mar 22
3
Which JavaScript effect is this?
http://canadaonrails.com/ (when you hover over news and events) I''ve seen this implemented on a few rails sites now and I was just wondering if it is just a simple javascript from the prototype library. Does anybody know of any links on how to do this? Thanks in advance! -- Posted via http://www.ruby-forum.com/.
2006 Jun 01
7
Active Record Basics - Making it commentable
hi everyone, I hope someone can help me out with some active record basics? I''ve been banging my head for the past 4 hours and I can''t seem to get it to work. I am trying to add comments to a caption (just like how one adds a comment to a post in a blog). I seem to be able to read posts just fine from the DB, however, I can''t use the "recordComment"
2006 Jun 03
6
Calculating row COUNTs
hi everyone, I''m trying to do a simple calculation in my rails project. I would like to find all rows in a table that match the given id of another table (ie. comment_id) and has the value = 1 ("value" is a field in the table), then add those values up. Next find the same rows with the value = -1 and add those values up also. Finally, I would like to find the total.
2006 Jul 04
1
Quick question: Iterate through a collection - no duplicates
Hi, is there a simple way to iterate through collection and not include duplicates? Thanks in advance. Jordan -- Posted via http://www.ruby-forum.com/.
2006 Jun 17
1
Quick Question: Random item from array
Well I think this is a quick question. I would like to select a random item from an array. I''m thinking maybe I need to generate a random number from 0 to array length. Actually I''m not exactly sure how to do this since I can''t seem to find math.random/math.floor on ruby api? Knowing ruby, there is probably a much easier way to do what I am trying to do. Any
2005 Dec 18
2
Could someone host my 1mb rails app??
Hi Everyone, Would someone be able to do a huge favor for me and host a very small 1mb rails app for me?? I can''t get my hosting up and running yet and I really need it up and running by today for my professor to check it off. I only need it up for about two weeks. You will get a lot of karma points for it :) Thanks in advance!! Jordan -- Posted via http://www.ruby-forum.com/.
2008 Jun 06
0
link_to_remote
Hi All, I attempting to add a simple AJAX link on my app, using the following code: = link_to_remote "Vote Up", :url => votes_url(foo, :canvas => false), :update => "vote_#{dom_id(foo)}" Unfortunately, this results in the following JavaScript error: ln 74 on facebook''s converted facebooker.js: a16056494085_options[idx("parameters")] has no
2006 Jul 09
0
2 ActiveRecord Calculations
Hi, I am trying to use active record calculations to perform two calculations. 1. Get the sum for each group. 2. Of those groups, find the maximum number of that sum I have the first step done, I just can''t figure out the second step. Any ideas? Here is what I have right now: @total_points = BlahPoint.sum(''value'', :group => ''blah_id'') Then
2006 May 30
0
Catching Errors with Flickr API
Hi Everyone, I am playing around with the flickr API and I was wondering if it is possbile to catch errors. I am using owner method (flickr :: photo) to display the owner of the flickr photo''s name. However, at times (works when it can find an owner), I get this error when loading the photo (with attributes): *** TypeError in Flickrtest#show Showing
2006 Jan 07
1
Sortable Element with Partials??
Hi Everyone, I originally had my sortable element list working properly like so: <ul id="sortable_list"> <% @items.each do |item| %> <li id="item_<%= item.id %>"><%= image_tag "dragme.gif" %><span id="title_<%= item.id %>" class="title"> <%= item.value %></span> <span
2005 Dec 18
0
Dreamhost Deploying Problems
Hi Everyone, I am trying to deploy my app on dreamhost and am following the quick start instructions on this wiki located here: http://wiki.dreamhost.com/index.php/Ruby_on_Rails I have followed all of the directions and can''t figure out why it is not working! I have been pulling out my hair for the past couple hours. Here is the sub-domain it is installed on:
2005 Dec 19
1
Deploying with Sub Directories
Hi, I am following this "tutorial" on dreamhost to deploy with sub directories: 1. Upload your railsapp to ~/railsapp/. ** I have uploaded to /sharemyten.com/list/ (list is my railsapp folder) 2. Make all necessary changes mentioned in the QuickStart Guide above. ** Did this... 3. Create a symlink at the location you want the subdirectory that points to ~/railsapp/public/: $ cd
2005 Dec 19
0
Deploying: Not too sure what to do next??
Sorry for all the posts today, I am just trying hard to get my app deployed.. I am getting close though! Here is what I have now: http://www.sharemyten.com/list/ I am getting the Rails Congrats message, but now I don''t know what to do next?? I have already setup the database and my local version works when I go here: http://127.0.0.1:3000/mylist/list. Therefore, I would assume to
2006 Jan 21
1
Sortable Element with Partials?
Hi Everyone, I posted this last month and unfortunately, I didn''t recieve any replies. Maybe this time I''ll have better luck. I originally had my sortable element list working properly like so: <ul id="sortable_list"> <% @items.each do |item| %> <li id="item_<%= item.id %>"><%= image_tag "dragme.gif"
2006 May 29
3
Timer for executing events
Hi Everyone, I hope you guys can help me out. What is the best way to go about using a timer to execute events? I would like to execute a block of code every 24 hours (or at midnight - server time). Is this possible? What I am trying to get at is that I would like to create a new page every 24 hours and have that serve as my front page. Is it possible to route to this ''new
2006 Jun 08
5
Displaying Calculation on Index
Hi, I am trying to create a simple point system and display the total on my index page. So I have my db basically setup like this: Posts id, body, created_at, user_id Post_points id, post_id, user_id, created_at, value So as you can see I am allowing other users to create points on the post and my db will store who gave the point as well. "value" is the point value which can
2005 Dec 18
5
restarting fastCGI process
Hi, I am very new to this so please go easy on me... I am trying to deploy my app on dreamhost and I seem to be having problems getting it working. One of the troubleshooting items on the wiki states: Rails apps in production mode do not reflect changes made after they start running. So, if you found a bug, fixed it and nothing appeared to happen--this is probably because you