similar to: Publish to static pages

Displaying 20 results from an estimated 30000 matches similar to: "Publish to static pages"

2006 Jan 26
2
Render and publish to static files?
What would be the best way to publish a number of pages to static html pages? Just loop through them and create URL:s and fetch them with http or is there a better way? tia /Marcus
2006 Feb 12
6
Including another helper
I need to include another helper module apart from the normal two (ApplicationHelper and [controllername]Helper). The inclusion needs to be dynamic and based on external parameters (ie what helper that get included differ from request to request). Is it possible? How? /Marcus
2006 Jun 26
7
Using Rails to Generate static pages
Hi all, Has anyone ever thought about or implemented a way to use Rails to pull content from a database and actually *generate* static html pages from view templates? I want to throw a bunch of content into a db using rails and then put all my website templates into the views dir and write the files out with the content inside. The funny thing is that the html pages Rails normally outputs to
2005 Nov 01
5
Strange error(s) on windows only
I have some strange behaviour on Windows XP boxes (the same code on Linux doesn''t have the same behaviour). Ruby 1.8.2 and Rails 0.14.2. I have a single inheritance table nodes with a base class Node (acts_as_tree) and some subclasses such as PageNode and FolderNode. If I render the tree in an iframe in a set of iframes it doesn''t work, if I render it stand alone it works
2006 Jan 09
3
Chopped files when downloading from database
I have some files stored in db. When I try to download these I only get 65535 bytes from the database even if the file is a lot bigger. Is it a Rails setting I''ve missed or a database setting? Anything else? Using Rails 1.0, WinXP and MySQL4.1 /Marcus
2006 Mar 01
4
STI, subclasses and callbacks
I have a STI class tree. I want to set some default values (calculated values so I can''t set it in the database as defaults) on every created instance regardless of what subclass is actually instantiated. So I figured adding a after_create callback in the top class in the hierarchy should do the trick. It seems it doesn''t get called :( Code: class SuperClass <
2011 Mar 16
0
Making Mongrel/WEBRick serve static assets with future expires header
I''m creating a Rails application which will be deployed to desktop machines, running both the webserver and the browser (it''s a test- taking application which needs to be able to run without an internet connection). For this reason, I''ll be running Mongrel or WEBRick, without an Apache/ Nginx in front of it as you would normally do. The browser will access the Mongrel
2007 Jun 24
1
Cant test 404 pages in webrick
I tried running webrick in production mode with -e production option. I changed development database name so as to make sure webrick was running in production mode. Now I wanted to test my new 404.html page so I typed an invalid URL, I still get some routing error instead of my 404.html page. Why is this happening with webrick in production. I haven''t even changed any of the environment
2006 May 17
2
NOOB: Passing parameters between pages
Folks, I have a rhtml page (page A) that links to another page (page B), and I want to pass some parameters from page A to page B. Here is the link code (on page A): <%= link_to ''Edit'', { :action => ''edit'', :id => permit }, :post => true %> If I want to pass a parameter "name" and a value "marcus", and pick it up on page
2009 Sep 25
0
WWW::Mechanize and Rails console not playing well
I can run this code just fine in irb, but when I run it in rails script/console, I get an error: >> res = agent.submit(search_form, search_form.buttons.first) ArgumentError: one hash required from /home/jwoods/NetBeansProjects/activista/vendor/rails/ actionmailer/lib/../../actionpack/lib/../../activesupport/lib/ active_support/core_ext/string/interpolation.rb:85:in `%''
2006 Mar 07
0
setting relative_url_root for static files in webrick
Hi, I am using webrick and want my application not be available on http://localhost:3000/ but http://localhost:3000/rails. So I found out I can set ActionController::AbstractRequest.relative_url_root = "/rails" in environment.rb. This works for controllers without further modifications. But for the static files, I have to put a "rails" directory into the public directory, and
2008 Jan 31
4
RSpec-1.1.3
RSpec-1.1.3 has been released. If you''re using RSpec and autotest, you''ll have to upgrade to RSpec-1.1.3 and ZenTest-3.9.0 at the same time. == Version 1.1.3 Maintenance release. * Tightened up exceptions list in autotest/rails_spec. Closes #264. * Applied patch from Ryan Davis for ZenTest-3.9.0 compatibility * Applied patch from Kero to add step_upcoming to story listeners.
2006 May 24
10
Ferret slow after a while
I''m building a new index from scratch based on a number of documents stored in a database loaded using my Rails env (using Ruby Ferret 0.9x (installed today with Gem) on Windows). At first everything goes nice but after a number of documents it starts to go slower and slower until it grinds to a halt (at least feels like it). Am I doing something wrong? Is there some way to work
2006 Sep 25
2
Managing requests for static content in WEBrick and Mongrel
All, Is there a way to set things up so that requests for static files in either WEBrick or Mongrel will just cause a regular HTTP request and not cause the dynamic routing-based invocation to occur? I had an issue where a request for a missing .js file was causing another request to be registered, thus blowing away my flash data. I tried to do this in my routing file, but I don''t
2006 Jul 20
0
Routing error
Hi! I''ve appended this to the standard config/routing.rb: map.connect '':id/:action'', :controller => ''cms/publish'' and it works but gives an error with every single HTTPrequest, even the ones matching the standard (and higher priority) routes. As an alternative I tried implementing it using map.connect ''*path'', :controller
2015 Feb 13
1
Asterisk 13 - publish handler
Hi list, How do I make Asterisk 13 (using PJSIP channel) to handle PUBLISH sent from the phones? The trace looks like: ## PHONE -> ASTERISK ## PUBLISH sip:1001 at example.com SIP/2.0 Via: SIP/2.0/UDP 172.31.19.250:2048;branch=z9hG4bK-w2orn21sre9u;rport From: "1001" <sip:1001 at example.com>;tag=98slbhbn16 To: "1001" <sip:1001 at example.com> Call-ID:
2006 May 17
0
NOOB 2 - Controller not running when accessing pages
Folks, I am linking from page A to page B, and back again. When I go from A -> B, the B_controller.rb runs fine, and the page renders properly. But, when I go from B -> A, the A_controller.rb doesn''t run again, so the array (@A) is nil (which causes a problem). Should the controller run each time the page is accessed? Any ideas? Marcus Marcus Blankenship Technology Services -
2006 Mar 16
1
Use Migrations in modules in separate source trees?
We have a scenario where we have a core engine with module add-ons. What modules that will be used differ from deployment to deployment. Each of these modules might need different things in the db (both structure and data) and I want each module to be in charge of its own db structure. Each module is contained in its own source directory and what modules to use is determined in the build
2005 Dec 29
3
Blank pages, ''missing default helper path rails_info_helper''
Environment: * OS X 10.4.3 * Ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] * Rails (1.0.0, 0.13.1) * WEBrick 1.3.1 * Following the wiki directions, I did the OSX fixrbconfig thing, installed Rails, MySQL, etc.. Please bear with me, I''m new to Rails. I successfully followed the ''depot'' application from the Agile Web Development with Rails book, building it piece by
2006 Feb 20
0
vpimd, a personal information server
This isn''t even close to ready for release, but in case anybody is interested, has feedback, finds it useful as is, or even wants to collaborate... I''ve been working on a "personal information server", something of a protocol multiplexer. Right now it serves calendar feeds for: - a local calendar folder (iCal 1.x''s Library/Calendars) - rss for local todos