search for: szinek

Displaying 20 results from an estimated 20 matches for "szinek".

2006 Apr 12
11
validate_presence_of not working for me
Hi all, I just begun with RoR and going through the Agile development w Rails depot example ATM. I did everything according to the book (i believe), and after 3 hours of googling, reading docs, making sure i did everything correctly i can not make the validate_presence_of() to work - at least not as it looks in the book. My Product model looks like: class Product < ActiveRecord::Base
2006 May 12
2
synchronize blog with Ruby on Rails site?
Hello all, I have the following problem: *) I have a WordPress blog at site x *) I have a Ruby on Rails site, y *) I want to accomplish the following thing: If i post a blog entry into my wordpress blog at x, (in category z), i want it to appear automaticaly at y (in a blog which is... let''s say just a Ruby on Rails something, or alternatively Typo or maybe WP) Suggestions to tackle
2006 May 15
3
Page hit counter?
Hello all, Yet another "don''t reinvent the wheel" n00b question: Is there an ''official'' page hit counter plugin/code snippet/whatever? I would need something like this: - It is possibility to set a constant timespan (say 5 hours). - On every page hit, save away @request.remote_ip and Time.new - The counter gets incremented only if the same IP was here
2006 May 21
3
Where to put partials called from the application layout
Hello, My main application layout, app/views/layout/application.rhtml looks like this: something render partial_1 something else render partial_2 something else render partial_3 The partials are not really doing anything, i use them to keep the layout modular (i.e . to have ~30 lines instead of 200). Now, the question is where to put _partial_1.rhtml, _partial_2.rhtml, _partial_3.rhtml. If i am
2006 May 22
2
How to execute time consuming code
Hello all, I have a screen scraping application (go to a lots of sites, extract 10k stuff, integrate the results, put them to DB etc). Now i want to use a Rails application as a frontend to this: The user can push a button which triggers the screen scraping app and view the results (preferably asynchronously, but that does not really matter right now). Questions: - Should the screen scraping app
2006 Apr 28
5
Migrations - use them or not?
Hello, As a rails newbie, i have stumbled upon some tutorials promoting migratons. I have thought, wow, cool and started using them right away. However, now that i am reading the RoR list on a daily basis, i have seen also mails ranging from ''migrations are not always the best'' to ''migrations are evil'' and even ''i would not use migrations even
2006 May 12
21
Drupal vs. Ruby on Rails
Hello all, Maybe the $subj is a little bit weird (i.e. apples vs oranges) but it is a situation i am facing at the moment: We are developing a small web site which will be mostly a CMS (more or less) and my colleagues is arguing for drupal, and i am for RoR. Maybe i can formulate the question in a different way: when to use a CMS (not necessarily drupal but e.g. Radiant CMS) and when to use Ruby
2006 Apr 20
1
Hmm, interesting guy on the RoR list
Hi all, The guy who write some ''interesting'' questions from the email revurikarna@gmail.com (besides that he wants the list members to solve his problems) is highly schizophrenic imho. 3 days ago hi signed his mail ''Kamala'' 2 days ago ''Naveen'' Today, ''Murali''. If you are trying to trick the guys here, change also your
2007 May 06
1
How to submit this form?
Hey all, maybe I am missing the obvious again, but I can not submit the form on buy.com: require ''rubygems'' require ''mechanize'' agent = WWW::Mechanize.new agent.user_agent_alias = ''Mac Safari'' page = agent.get("http://www.buy.com") search_form = page.forms.with.name("searchbox").first p search_form.buttons the last
2007 May 28
2
Clicking image maps?
Hello all, I am trying to click image maps ("area" nodes), and while Perl''s mechanize treats "a", "area", "frame", "iframe" and "meta" tags as links, it seems to me that Ruby''s Mechanize thinks only "a" tags can be links (at least my little experiment, namely: page.links.each {|link| puts link.node.name}
2007 Apr 19
1
Do you have any idea what could be the problem with this script?
Hello all, If I run this script, and observe the output, the results are not there at all (try to do the same in the browser). Any suggestions? require ''rubygems'' require ''mechanize'' agent = WWW::Mechanize.new agent.user_agent_alias = ''Mac Safari'' page =
2007 Apr 20
2
Running script does not return the correct page
Hello all, I have tried to post this yesterday, but noticed I was actually not subscribed yet... Well, here we go again: If I run this script, and observe the output, the results are not there at all (try to do the same in the browser). Any suggestions? require ''rubygems'' require ''mechanize'' agent = WWW::Mechanize.new agent.user_agent_alias =
2006 Apr 24
1
Yet another ''how to sell Rails'' (performance related) question -
Hi all, I have already evangelized my management to use Rails instead of a Java framework for a newly starting projects - they are OK with Ruby, Rails, seems i won the ''will it scale?'' round too, however there is one final round: performance. These guys are really hooked on numbers. (I know, i know, i have been reading DHH''s thoughts on this topic (in short: who
2006 Apr 20
5
Toolbox
Hello my friends Today at FISL (International Forum of Free Software), I''ve had the opportunity to watch a Turbogears presentation. The framework, itself is really weak in comparison to rails, but... When the guy who was making the presentation show the NEW 0.9 TurboGears Toolbox I''ve though: - Isn''t something like that in Rails? Well, after a little googleing
2006 Mar 29
38
Poll: Which distro do you use for Rails/Ruby development?
Good afternoon, I''ve two quick questions for the Ruby/Rails community. 1) Do you use Linux for Ruby or Rails development? 2) If you use Linux, which distro do you normally use to develop? Thank you for your input. :-) -- Posted via http://www.ruby-forum.com/.
2006 Apr 20
8
SCM for a Rails project - Darcs or Subversion?
Hi everyone. I''m choosing an SCM for my current Rails project. Up until now, for my other (non-Rails) codings, I used Darcs and liked it very much. I''d prefer to use Darcs for my Rails development as well. Looking into the matter, I''m somewhat deterred by the appearant dominance of Subversion as the SCM tool of choice for Rails hackers. Is there a technical reason for
2006 Feb 25
20
Agile Rails book code fails page 32
Starting Agile Web Development with Rails, page 32, everything has worked well so far but on (book not pdf) page 32 I don''t get the "Template Is Missing" error. I get Routing Error Cannot load config/routes.rb: No such file to load -- ./demo/script/../config/../config/routes.rb There is a file at e:\ruby\ror\work\demo\config\routes.rb It''s all greek to me and
2006 May 05
0
(P)review of AWDwR and R4R
Hello, A lot of discussion is going on about AWDwR 2nd ed, i have decided to write an entry about it (and R4R) after reading few chapters: http://www.rubyrailways.com/fisrt-impressions-of-awdr-2nd-ed-and-r4r/ Cheers, Peter
2006 May 24
2
Which JS/Ajax library to use with RoR
Hello, I am beginning to soak myself into JS/Ajax stuff and I am quite confused because of the myriad of AJAX books/frameworks - Its even worse than RoR in this sense (i.e. in the case of RoR, half of the people are writing books on it, and i believe this value is even higher with AJAX ;-) Of course this is not a bad thing, but if a newbie has to choose something it can be really hard. So my
2007 Apr 19
0
scRUBYt! 0.2.8
This is long overdue (0.2.8 is out for about a week already), but anyway, here we go: ============ What''s this? ============ scRUBYt! is a very easy to learn and use, yet powerful Web scraping framework based on Hpricot and mechanize. It''s purpose is to free you from the drudgery of web page crawling, looking up HTML tags, attributes, XPaths, form names and other typical