search for: masonkessinger

Displaying 14 results from an estimated 14 matches for "masonkessinger".

2006 Jul 25
6
DRY question (newbie)
Say i want to include the same chunck of text (a menu on a webpage for example) on each page. Is there a method by which I can save the HTML in a text file and call it up later? Is there a better way? I know ruby has "puts" but i can''t use that b/c it does not work with my webhost (dreamhost.com) Any suggestions? -- Posted via http://www.ruby-forum.com/.
2006 Jul 28
2
gem install (Errno::EACCES)
I am finding it impossible to install a gem, and even more impossible to find help. Can anyone PLEASE help? - - - - - - - - - Mason-Kessingers-Computer:~/Desktop/rails/pygmalion masonkessinger$ gem install login_generator Attempting local installation of ''login_generator'' Local gem file not found: login_generator*.gem Attempting remote installation of ''login_generator'' Updating Gem source index for: http://gems.rubyforge.org ERROR: While executing...
2006 Jul 28
5
DREAMHOST SO SLOW
Does anyone know of any fixes to this? Any industry-known tips/tricks? The page loads sometimes take 20-30 seconds. so bad. mk -- Posted via http://www.ruby-forum.com/.
2006 Apr 04
2
newbie-server bound to 3000, cannot disconnect
I know there is a super easy answer to this, i just can''t remember. I have fired up my server on port 3000... and want to disconnect it. easy. ERROR MESSAGE: => Booting lighttpd (use ''script/server webrick'' to force WEBrick) => Rails application started on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server (see config/lighttpd.conf
2006 Jul 25
1
? Password Protection ?
Say I have some directories I want to password protect. sub.web-app.com/cms sub.web-app.com/cms_posts sub.web-app.com/cms_photos sub.web-app.com/cms_news where /cms is a page that allows access(links) to all three other cms pages. - - - Does anyone have any quick advice on how to password protect these areas? Any good online tutorials? Any advice? -- Posted via
2006 Aug 16
5
too many SESSIONS?
I just notices my app was down, and in the log file were lots of these: No space left on device - ../config/../tmp/sessions//ruby_sess.898b1cf95e14f8e3 So i figured that i had too many sessions. I went through and deleted the sessions and then in a few minutes, the site was back up again. Can anyone explain this? Did I do the right thing? Is there a way I can tell my app to accept more
2006 Jul 04
13
NewBie question
Hi, I m very new to Ruby. I bought a book "Ruby on Rails" and I think I understand some concepts. My question is : Is there a way to not use "Cookies" or "Sessions Variables" to keep some information about the user. I ask this question because I would like to prevent some cases where the user browser won''t accept cookies. I m from Asp 3.0, and I
2006 Jul 18
13
RANDOM
I am pretty much new at this ROR game and had what I think to be a simple question. I have a set of Sponsors that I would like to be able to select one at random and display in the my html. I have already set up the DB, scaffolded, set index controller and all is working smoothly. I know that I can display them all by doing <% for sponsor in @sponsors %> <%= sponsor.name %>
2006 Jul 24
2
Flash problem with RoR? missed something?
I have tried to put a flash movie inside of my RoR page and it shows up with nothing on IEPC. It does very well on every other type of browser but does not work with IEPC. I made a folder - "flash" in my public directory and have had the one instance of it point there. Thus my flash directory is www.rails-app.com/flash/flash.swf Is there anything that anyone knows to help out?
2006 Jul 27
1
Password Protection
I want a really quick and easy way to password protect a directory in my rails app. Does anyone have any really quick/easy ideas or maybe a tutorial that I could use as example? Thanks! Mason Kessinger. -- Posted via http://www.ruby-forum.com/.
2006 Aug 04
1
Helper within a Helper? (IMAGE PLACEMENT)
I would like to call an image to be displayed based on its title. It is easy enough for me to do this like this: <img src="/images/suggested/<%= suggested.title %>" height="100" width="100" /> But I want to stick within the ruby code and I''m trying this: <%= image_tag("/images/suggested/<%= suggested.title %>", size=>
2006 Jan 16
8
[newbie] This Month / Next Month / The One After That
What I want to do is simple. I''d like code that prints out the name of this month (January) the next month (February) and the one after that (March) I''ve been able to print this month: <% t = Time.now %> <%= t.strftime(" This Month is: %B") %> But I can''t figure out how to get the next months to print out! -- Posted via
2006 Aug 15
5
XML question
Is there a way you can use RoR to create an .xml file? Say I had a DB full of info that I wanted to format and have export as "lorem.xml" inside of a specific directory in my web server? Then, each time I updated the DB it would re-export the file (delete the old, save the new?) -- Posted via http://www.ruby-forum.com/.
2006 Apr 04
3
newbie - HABTM problems writing to Join Table in SQL
I am attempting to document a join between two tables. There seems to be no writing to my database. Please help me out it is driving me absolutly crazy. Basically i''ve got a table of directors that is called when the new/edit controller model for films is activated. It shows the user a selectable list of directors they can apply to films. The problem is in the update/create part. I