search for: sombreroisland

Displaying 20 results from an estimated 23 matches for "sombreroisland".

2006 Jun 28
9
Scaffold Issue with Postgres
Hi guys, I''ve been able to successfully install the postgres adapter for a remote database machine to get rails up. My machine is running on Fedora 2. Rails version 1.1.2. Is my yml config correct? I am getting this error when I execute script/generate scaffold service_contents content : exists app/controllers/ exists app/helpers/ create app/views/spiel exists
2006 Jun 08
1
Using hidden fields to pass values
Hi guys, Another question from a newbie. I need to update a div on my page which gets updated regularly. So what I''ve done is to create a hidden field which technically just contains the user_id. This field doesn''t change. I was planning of pulling that text field user_id data and putting it into params but it keeps on giving me a nil value. Is there a technique I could
2006 Jun 15
1
Periodically Call Remote Condition
Hi guys, I''ve been reading through the forums and came across a response for adding :with condition to a periodically call remote. I tried it out and couldn''t make it work. Would anyone have a sample of how to use this conditional structure with periodically call remote? If not, does anyone have any idea how to add a condition to a periodically call remote? What I need is to
2006 May 18
3
How to call controller from a div
Hi guys, it''s me again, Just wanted to ask, what technique can you use to call a def inside your controller while clicking on a div? thanks, Bing -- Posted via http://www.ruby-forum.com/.
2006 May 19
2
Checking div generation technique
Hi guys, just wanted to ask, on the onset of our page, we generate several div''s. What we noticed on an intermittent connection is that several divs don''t get to generate all the div''s sometimes so we had to reload our page. Would you have any technique on how we can do this? thanks bing -- Posted via http://www.ruby-forum.com/.
2006 Apr 28
2
Trying to turn params field into a variable
Hi guys, I have another question, we have this line on our .rb code: @variable = params [:user][:bird] I need to be able to change the 2nd field into a variable because it is a changing valuename, I was wondering if you had any trick for that. Meaning I need to make [:bird] into [:dog] or [:cat]... It''s proven really tricky for me to get it to change I wonder if you guys had any
2006 May 31
2
Checkbox Help
Hi guys, I am need to help again. Sorry for the newbie query but would definitely appreciate the help. Here''s the q: I generate a list of items from the database and render them out with a checkbox beside them. A user may click more than one item and I would want to save all checked items into another table. I have been able to give each checkbox a unique id . Would anyone be able
2006 Jul 19
4
How do I overwrite/extend a scaffold module?
I have many pages to generate quickly. They are based off of the scaffold generator, but I want to convert the rhtml files to Markaby, and change some formatting. Without having to do a lot of repetitive hand editing. Is there a simple way to overwrite/extend part of the scaffold generator? Do I need to write my own from scratch? -- Best Regards, -Larry "Work, work, work...there is no
2006 May 17
9
Render No Layout?
Hi guys, Am having a problem. I have this def in my index controller that works like this: def do_something $a = variable1 $b = variable2 $c = variable3 $d = ""<script language=\"Javascript\"> \n new Insertion.Bottom(''#{$c}'', ''#{$a} - #{$b}''); \n </script>" $trigger = "1" render(:partial =>
2006 May 30
11
Another String Manipulation Exercise
Hi guys, And I thought it wasn''t a problem. Here''s my string "/var/www/vhosts/mysite.com/httpdocs/public/file/mypic.jpg" How do i take out all the text that comes before "mypic.jpg"? Trickier than I first thought. TIA, Bing -- Posted via http://www.ruby-forum.com/.
2006 Jul 05
1
Weird Script/Server Issue
Hi guys, I am experiencing something with Rails and wanted to ask if you had any experience with it. I have a remote Fedora 2 server running Rails 1.1 on Lighttpd. I have my firewall down. Well, when I execute webrick script/server on standard port 3000 (or for whatever arbitrary port between 1000 to 9999 for that matter), I go to my browser type in http://X.X.X.X:3000, I keep getting a
2006 Jul 18
2
Scaffold a Plural table w/ No Pluralization in environment
Hi guys, I have a situation here. I have my project set to no pluralization due to legacy tables in environment.rb. Now, I have some new tables which I''m starting to pluralize. When I do a generate a scaffold to this new table: script/generate scaffold my_tables table it seems to work out fine for certain sections like http://mysite.com/railsapp/new (which also inserts properly to
2006 Jul 21
1
Saving multiple variables using link_to_remote
Hi guys, I have a form with 10 fields and was wondering how you can pass multiple values and saving them into your database using link_to_remote. Is it doable? thanks, Bing -- Posted via http://www.ruby-forum.com/.
2006 Jun 16
1
Database Optimization
Hi guys, I was wondering how I can actually optimize my code. I''m trying to write a chat application and I had wanted my messages saved into my database. Imagine a browser with a chat window, you type in your message, click the send button, render the message on the chat window on the same browser then save into the database. Initially, without any databasing, javascript write will
2006 May 02
0
Render Partial virtual pages
Hi guys, We all know this snippet of code: render(:partial => ''page'') here''s my problem, I think I need to create a render where in the page will be dynamic. example, page = username and my code will need to render(:partial => ''username''). is this even possible? My issue is with a chat application I''m trying to do. I already have
2006 May 04
0
undefined method `first''
Hi guys, need help, we were trying to load the prototype helpers but we are getting this particular error: undefined method `first'' for :prototype_helper:Symbol What is the ''first'' method? thanks, Bing -- Posted via http://www.ruby-forum.com/.
2006 May 05
0
Re: Javascript Event Handler for Chat App
anyone? Hi guys, I''m stuck with this perplexing problem of Javascript and periodic updater. I''m trying to do a chat application and it''s an issue of holding on the the div id. I have no problems when the user clicks on a submit button to sends a message to the presence server. On the other side of it though, I''m using periodicupdater to poll the server
2006 May 30
1
Url encoding Help Pls!
Hi guys, it''s me again, I want to come up with the following url: www.mysite.com/webpage?myid=1 I keep coming up with the following url: www.mysite.com/webpage%3Fmyid%3D1 require ''uri'' $myurl = URI.escape("webpage?myid=") redirect_to(:action => $myurl + 1 ) what am I doing wrong? I also tried require ''cgi'' $myurl =
2006 Apr 25
0
Params Help to Pass variables from URL
Hi guys, I''m new to ruby on rails and am realy quite having a problem with passing values. I created a test folder and have 3 files: 1. Main.rhtml <%= render_component(:controller => "test", :action => "pass") %> 2. Pass.rhtml <%=@test%> <%=flash[:notice]%> 3. Controller.rb class TestController < ApplicationController def pass
2006 Jul 14
4
Rails Lighttpd Issue on Fedora
Hi guys, I''m here again with a problem. I have a rails app called brewed. It''s located /home/user/brewed. My lighttpd.conf is located at /home/user/lighty. When I execute lighty on port 80 with: /usr/local/sbin/lighttpd -f /home/user/lighty/lighttpd.conf rails seems to work fine. If I type www.mysite.com/main/index on my browser, the page comes out well. I have my files