search for: staticcontrol

Displaying 5 results from an estimated 5 matches for "staticcontrol".

2006 Jan 25
15
Newbie: Static page without controller
Hello, I''ve been through a few tutorials and have made some simple apps that interact with the database, but I''m having trouble doing something that seems like it would be very simple. Just imagine a static website that doesn''t interact with the database. You have pages like: www.domain.com/home www.domain.com/services www.domain.com/more-stuff Since these are
2006 Aug 01
4
class def error when serving "stand-alone" rhtml files
...that I can add rhtml files without having to create controllers for each one. I want a simple solution to serving static-like rhtml files as well as those with a little logic. The solution I found is this one: I added the following controller static_controller.rb ##################### class StaticController < ApplicationController end I then created a folder named static in my views folder. All seemed fine(it worked) until I attempted to create a class in my rhtml code and the following error was thrown: compile error script/../config/../app/views/static/imageMediation.rhtml:12: class defi...
2006 Apr 08
1
How do I allow downloading pdf & and other files?
I have a library of .pdf and .doc files in the public folder of my Rails app. What''s the best way to configure routes.rb so that I can provide links to download these files from my webrick server? -- Posted via http://www.ruby-forum.com/.
2006 Feb 04
4
Dynamic loading view from DB
Hi All, I am looking for a way to dynamically load a view, inside a template, based on uri that does not officially exist inside of rails. i.e. a typical CMS system such as wordpress that stores the html from the pages in a database. I have found a page on the the rails wiki ( http://wiki.rubyonrails.org/rails/pages/HowToRunAnActionBeforeRoutes) that seems to be what I want, but lacking a few
2006 Mar 12
5
Authentication and authorization of static content
Hello, I''m a Java programmer looking to make my life easier. Thus, I''m considering using Rails for my next project. I''ve read chunks of the Agile book and it looks like authorizing users at the Controller level is dead easy to do. However, I have a need to password protect static content in my site. In the J2EE world, I would use a servlet filter to intercept