similar to: a newbie question, if possible to help

Displaying 20 results from an estimated 900 matches similar to: "a newbie question, if possible to help"

2006 May 14
3
hi all
Not much I can say except that I am very excited to enter this new world(solely for me of course, kind of late) of rubyonrails.If anyone has any patience or just plain kindness to help me on my first steps (leaps?) , I would greatly appreciate any links, references, tips, hellos, or whatever else is offered. Thanks ahead of time, Shai Rosenfeld Octava I -------------- next part
2006 May 30
2
Hi , Anyone From Singapore?
Hi All , I been trying out RoR and reading the mailing list for sometimes and wondering if anyone of you guys from Singapore ? I am thinking of a meetup or something for RoR fans here. If you are , pls contact me by my email ? Thank you very much. regards billy PS : Apology for sending non-ruby question email in the list.
2006 Mar 16
6
Newbie question - Rails without database
Hello to all, I am entirely new to Ruby and also to Ruby on Rails. As far as I understand, Rails builds its model according to the a specified table structuree in in the database. However, most of my applications, are for the most part (except some backend CRUD stuff) not database centric. They do a lot of calculation for the user. So, how can I create a model, when no database is needed,
2006 Jun 01
9
access model from controller
Hello, Rather new to RoR, so I''m not sure about the terminology and such :-/ . My question is: how could I know the model which is associated to a controller? For example: - controller class is TestController, which is a subclass of ApplicationController - associated model class is Test How could I write some code in a method of ApplicationController to dermine the current
2006 Jun 01
3
how can i redirect a person after a login
i built my own login system, but unfortunately, i am having problems (ie, can''t really figure out how) to redirect a person back to the page he was requesting before logging in...say, as the admin i want to edit a certain message/logo, whatever, so i click on it, and i get redirected to my login page. after the admin logs in, he gets redirected to the homepage - i couldn''t
2007 Aug 25
5
How do I assign default values to model attribute
I have a model with a attribute named "code". Every time i create an instance I want the "code" to be initialized by making a call to "generate_code" method. How do i initialize model attributes in rails ?? thanks for help. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2007 Sep 10
3
Can't reach a controller :(
When I try to see a controller I get a 404 error, this is what WEBrick says What could it be? Thanks for the help ;) => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2007-09-10 13:30:26] INFO WEBrick 1.3.1 [2007-09-10 13:30:26] INFO ruby 1.8.6 (2007-06-07) [i486-linux] [2007-09-10 13:30:26] INFO
2007 Jul 03
5
HOW TO: Easily output alternating item styles via metaprogramming
I always need to apply alternating item styles when outputting a collection, here''s what I''ve been using recently. In the app helper I define this method: def alternate(items,alt=false items.map{|i| i.class}.each { |k| k.class_eval {attr_accessor :alt}} items.each { |i| i.alt, alt = alt, !alt } end When I call the partial I wrap the collection with this method:
2007 Jul 14
2
How to invoke a GET request to home page
The homepage of my application has time sensitive data. The homepage is cached for fast loading. However I clean out the cache every day midnight. It means the first person who hits the after the cache clean up has to wait extra long. The cache is cleaned out using a rake job. Is there a way I could write a rake job to just go and hit the homepage and generate the cache page just after the
2007 Oct 09
2
Javascript "please wait" image
When I used to write Perl CGI scripts I displayed an animated gif image whilst waiting for a long database query to load, and some javascript to remove the image once the content was available. I''d like to do the same thing with Rails, but it''s not clear to me how to do this in Rails. Does anyone have any suggestions? -- Posted via http://www.ruby-forum.com/.
2009 Aug 07
2
create separate plots by factors
Hello, I am attempting to create several plots based on "site" (~300 total) and am having trouble with the code. I simply want to create a plot using the code, plot(year, peak), for the following dataset. I would like for each site to be plotted on a separate page and the plots saved in a directory. Would a "foreach" loop work? I tried a "by" statement, but
2006 Jun 09
18
Is IRB the ruby console ?
I''m running script/console but keep getting the message that irb.bat is not recognized as an internal or external command, operable program or batch file. If it means anything I am running instant rails. I can invoke irb straight forward. TIA Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Apr 04
4
Maintaining and securing the "Perfect Rails/Debian/Lighttpd Stack"
Hi there I''m planning to build "The Perfect Rails/Debian/Lighttpd Stack", published by Ezra Zygmuntowicz and Sean Schertell at http://brainspl.at/rails_stack.html I''m wondering what sort of constant maintanance that setup would incur. What actions have be regularly performed to keep this setup healthy and secure under normal conditions? Alder
2006 May 18
7
Ruby Before Rails
As I, like many people, are coming to ruby in the rails era, I''m curious about how Ruby Web Dev was done prior to rails. Any veterans want to share their insights? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060518/20cde24d/attachment.html
2006 Jul 22
2
How to SELECT from multiple talbes with AR#find and associations?
So I want to SELECT from multiple tables, so as to be able to do "SELECT FROM foo, bar WHERE foo.id=bar.id AND bar.baz=23". How do I do it with AR#find? Also, I need this for associations. has_many et. al. have :finder_sql, which is nice, but feels like a Pyrrhic: it''s basically doing the association in pure SQL, defeating the purpose of AR. -- -Alder
2006 May 18
4
How do you delete a session variable?
Hi Let''s say we set session[:foo] = ''bar''. Now we want to remove the :foo key completely. How do you do that? Appearantly, session is a CGI::Session [1] instance, so it doesn''t have #delete like Hash. I tried: session[:foo] = nil But then debug(session) shows an empty :foo key. I''d like to remove that key, as my session is already pretty crowded. Is
2007 Feb 05
3
rsync 3.0.0cvs timeout
Hi, When I send this command, I get a timeout almost every time... --- this is the client side --- rsync -av --timeout 120 /home/bat/20070205_0501/log/sync_dns29_log /home/bat/20070205_0501/log/sync_dns29_serial /home/bat/20070205_0501/log/sync_dns29_tcpdump_log.gz --port 5873 fileserver::test/20070205_0501/log sending incremental file list sync_dns29_log sync_dns29_serial
2006 Mar 24
10
Running Rails tasks by schedule, instead of an HTTP request.
Hi there I''m considering Rails for a new web-application planned to be built from scratch. The application has an extensive web front, and in fact most of the application is interfaced through that front and engaged through clients'' HTTP requests (i.e. the conventional way web-applications and "dynamic web-sites" work). However, some essential parts are supposed to
2006 May 06
3
Storing additional data on join tables with Rails
Hi there I need to store additional attributes on join table. Searching the Wiki [1] revealed two possible methods: 1) push_with_attributes, as described by Justin Palmer [2]. Unfortunately, "this method is now deprecated" [3]. Even if it wasn''t, there seem to be inherent problems with that approach, for example with updating those additional attributes, though Joshua Muheim
2011 Mar 04
8
rake issues
Is there any reason why db:setup and db:reset don''t show any more on "rake -T db"? I guess any rake task that is defined only as a group of other tasks (without any ruby blocks attached) presents this problem. Also let me write this as a remember note to myself for when I have some time: the Rails Guides on Migrations should be updated to include instructions about db:load