search for: igvita

Displaying 8 results from an estimated 8 matches for "igvita".

Did you mean: ignite
2009 Apr 01
2
hpricot won't scrape! (newb question)
Hey all! Just to preface, I am fairly new to RoR, and brand new to using hpricot. I am using the following code to scrape this xpath: "/html/body/div/div[5]/div/div[2]/div[2]/div[2]" from this url: "http://www.greatnonprofits.org/" Here is my code to do so (taken from igvita.com''s related blogpost): ************* require ''rubygems'' require ''open-uri'' require ''hpricot'' @url = "http://www.greatnonprofits.org/" @response = '''' begin # open-uri RDoc: http://stdlib.rubyonra...
2007 May 10
5
Pagination has many through problems
I have searched for days for an example that demonstrates what i would like to do, and this morning i thought i''d worked it out, but no....here''s what i have: Controller ========== class ProfilesController < ApplicationController def friends current_user.profile.friends end def list_friends @profile_pages, @profiles = paginate( friends, :per_page => 10) end end
2007 Feb 10
2
Ferret and Paginating Find
...I decided to change my pagination to begin using the "Paginating Find" plugin. http://cardboardrocket.com/pages/paginating_find I''m using the "Paginating Find" plugin and combining it with the following guide to get Digg.com style pagination looking links. http://www.igvita.com/blog/2006/09/10/faster-pagination-in-rails/ For most of my site, that works fine, but I haven''t been too successful in getting it to work with acts_as_ferret and I''m not quite sure where to start. Anyone tried this out before or have any ideas that might point me in the righ...
2007 Apr 01
1
Ajax response not evaluating?
...ctions with no failures! Even better, the response is identical for a logged in user (which does evaluate). This pattern repeats on FF 1.5/IE 7. I''ve updated all js scripts to latest revisions (rake rails:update...). Any ideas? Can you give it a shot, do you see the same problem? Ilya - igvita.com/blog -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@p...
2006 Oct 18
3
[Bug] Seg Faulting in index.rb:718
...fault ruby 1.8.5 (2006-08-25) [i686-linux] I''m using ferret 0.10.11. I haven''t had the time to dig into yet, it''s on the backburner right now - I just keep several spare servers and restart them periodically but maybe someone else can spot the problem. Ilya http://www.igvita.com/blog -- Posted via http://www.ruby-forum.com/.
2010 Dec 15
6
Mysql query optimization for order condition
Hello everyone! I''ve a question that I hope someone in here would be able to answer. Today I was writing a simple test for a method that takes the last "n" (where n is an integer) users that signed up on my web app. I know it''s a simple method, but then I started to think about the optimal way to query the DB, and I tried different options. The first thing I did
2008 Feb 20
3
Can Rails and PHP work together?
Hello everyone, I am new to RoR, coming from an ASP.NET background. I''m currently working on a politically-themed social network, and I want to have multiple bloggers who will blog about various topics. My web host offers several PHP-based blogging engines, and I like WordPress, so I am trying to set it up with a subdomain such as blogs.mydomain.com/blog_name. However, I''m
2007 Feb 20
7
How to Get data from Web Page to Database.
Hi, I want to get the details from a table which is displayed on a Web page into the Database. How to read that Web page ? I mean if there is table Student details like Roll no., name etc. And I want to read that table & store it into my database in table My_Student. How to do this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are