similar to: hi all

Displaying 20 results from an estimated 600 matches similar to: "hi all"

2006 May 28
8
a newbie question, if possible to help
i was wondering if anyone can help me form a very simple "if" statment in the controller... i did a usual scaffold for table ''pages'', and everything is working out well, i did the main site ''backbone'' and all, and everythings good....the thing is, now i need to make sure that the site-admin does not have the possiblity to destroy page 1 or page 2.
2006 Jul 22
3
Doubts regarding Models
Dear folks, I want to know whether the following things are right or wrong, in the first place. Then to know the right way to do the same, if it is wrong. I am having a table with the name "cd_details". using models, I am accessing data from this. my model is having the code like this. model filename : cd_detail.rb -------- class CdDetail < ActiveRecord::Base def self.find_data
2006 Jul 22
2
fetching records from tables
Dear all, I have a doubt, How to fetch records from tables, which are not having ID field as its primary key. If possible, please tell me to way to extract data from those tables. -- with regds, Nahalingam N. Kanakavel. (http://www.nahalingam.bravehost.com/PlanetN/) -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 22
3
Connection refused - connect(2)
Dear all, Please help me in this regards, I am using models to access LegacySchemas using set_table_name and set_primary_key... [code for model] class CdDetails < ActiveRecord::Base def self.find_data set_table_name ''cd_details'' set_primary_key ''cd_label'' find (:first, :select => "cd_label") end
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 14
2
How to do routing ?
Hi folks, I am working in Fedora Core 2 Linux, and using Apache 2.0 and mod_fastcgi, as per mentioned in the following link, to support Rails. http://wiki.rubyonrails.org/rails/pages/RailsOnFedora I had created virtual host and specified the path to my application''s /var/www/html/myapp/public/ directory as a value for DocumentRoot directives. Now what is happening is that, my
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 Jun 16
12
FastCGI times out?
Hello there, So I''m still struggling with this fastcgi stuff. I''m trying to upload and process a decent sized ZIP file, but the request dies before it finishes and I get the following error: FastCGI: comm with (dynamic) server "/Users/ryan/Workspace/rails/photos/public/dispatch.fcgi" aborted: (first read) idle timeout (30 sec), referer: http://photos/album/new/4
2006 Jun 16
5
Application Error
Hi Folks, When I have tried this cookbook example from onLamp tutorial, I got some error like this, output of development.log is ---------- Permission denied - /var/www/html/cookbook/public/../config/../tmp/sessions//rub y_sess.d51d8997edf6be91 only the first line of output is this, output truncated. --------- what it will be ? How to solve this ? In my browser, I am getting Applicaiton
2006 Jun 06
1
how to configure apache
Hi all, Please provide me some tips to configure apache to support ruby. I got some websites which tells about configuration, but It is not working. please help me with better explanations. thanks in advance. -- with regds, Nahalingam N. Kanakavel. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jun 16
3
Routing Error - Recognition failed for..
I followed the guide for RailsOnWindows (http://wiki.rubyonrails.org/rails/pages/RailsOnWindows) and completed all the steps without any problems. But when I try to access my page, I get: Routing Error Recognition failed for "/rails" rails is what I have in my httpd.conf: <VirtualHost *:80> ServerName rails DocumentRoot "D:/devapps/Apache
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/.
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
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
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