Displaying 20 results from an estimated 50000 matches similar to: "Templates"
2006 Jun 29
2
? concerning ActiveRecord, Action and template
Much appreciate any help here. I''m just getting started learning RoR and
setting up my first form is throwing me - I''m not getting the concepts
formalized in my mind.
Situation:
- Controller is: Donation
- Action is: donation_entry
- Template is: donation_entry.rhtml
This form will be displayed when selected from sidebar menu (which will
always be present for all
2010 Aug 18
2
RSpec 2/Rails 3 - content_for in view specs
My main layout includes separate content_for/yield sections for my header,
sidebar, footer, and content. However, when running a view spec, the
`rendered` variable seems to only contain a string of just the primary
content and ignores the header/footer/sidebar as well as the rest of my
layout file (the "render" call just returns my primary content wrapped in
generic <html> and
2012 Sep 14
0
The FLAC website
Hi all,
I've updated the RSS feed and made the pages fetch and display that
feed. Now only the feed had to be updated to update the pages as well.
I have included a patch, however, I've never worked with git before so I
hope everything is done correctly. If not, please tell me. I've removed
the feeds/news-atom1.xml file, however that doesn't show up in the diff
file?
I would
2012 Dec 13
2
The FLAC website
On 14 September 2012 18:01, Martijn van Beurden <mvanb1 at gmail.com> wrote:
> Hi all,
>
> I've updated the RSS feed and made the pages fetch and display that feed.
> Now only the feed had to be updated to update the pages as well.
>
> I have included a patch, however, I've never worked with git before so I
> hope everything is done correctly. If not, please tell
2006 May 04
1
Re: How do I identify the initiating View from within aHelper?
Lindsay,
Wouldn''t you want to use a component for this? I know components seem
to be out of favor, but they seem like a perfect fit for this very
thing.
You could then go like:
<%= render_component :controller => ''sidebar'', :action => ''home_menu'' %>
The :action parameter could even be more dynamic based on your own
needs.
Maybe someone
2006 Feb 25
2
How do templates get access to controller variables?
This is probably more of a Ruby question than a Rails question. I''ve
always wondered exactly how controller instance variables are being made
accessible to the ERb code in the views.
In the Agile Rails book on pages 38, there''s a sidebar at the top that
hints at what''s going on:
"Rails does some Ruby magic so that the instance variables of the
controller
2012 Aug 30
2
The FLAC website
Sorry, for the late repsonse Martijn. I've been crazy busy.
Martijn van Beurden wrote:
> On 28-08-12 10:46, Erik de Castro Lopo wrote:
> > I think thats a great idea. WOuld be happy to have someone pick
> > this up and run with it.
>
> So I got busy but stumbled upon several things. I'm not sure why there
> are two boxes displaying the same news on the homepage
2005 Dec 18
3
Using Ruby on Rails to Create Historical Blog
Hi, everybody.
For a long time I''ve been interested in putting together a blog-like Web
site where I write "posts" on historical events and then the posts are
automatically ordered on the main page by the date of the events that
they describe.
I first had the idea because I thought it would be really easy to just
back-date the posts to historical dates and have them
2005 Dec 28
3
[Templates] [Noob] templates across controllers?
Fine Rails Hackers:
I am trying to decide how to approach a templating concern.
I would like to define a standard template for all of my pages (including a
basic header, styles, footer) across my five base controllers: desktop,
events, financials, and records, account.
Is there a top level place to declare a template across the entire
application regardless of the controller?
I understand how
2006 Jun 28
2
Problem debugging rails app
Hello - new RoR developer here need some help from you experts.
I am writing a custom sidebar for typo (to extract events from my google
calendar) and have hit upon a problem that I can''t resolve. I want to
use strptime to create a date object but when I hit that line of code
the method is bombing without giving me any error messages to the
console or the development.log file.
Any
2007 Jul 28
1
[LLVMdev] Web Site Re-Design
On Jul 27, 2007, at 7:40 PM, Nick Lewycky wrote:
> The body text is either too small or too low-contrast (or both).
> Please
> make it black. Yes, it might not look as pretty, but it will at
> least be
> high contrast.
One of my concerns as well. The Webkit and openSUsE sites seem to be
similar -- maybe just darker and not yet black.
> The four major boxes form a corner in
2009 Jan 03
2
Some questions from a new webgen user
Hi everyone. Sorry if it is not the place to post questions about
webgen. I use webgen5, i know it is not the stable version but i
couldn''t understand how webgen4 worked, it''s easier with webgen5, and
i won''t have to change my pages when it becomes mainstream ;)
I try to build my homepage using webgen, and there are some things i
don''t know how to do (i am sure
2006 Apr 19
3
ror css
Hi
pretty new to this ROR stuff, ive just created my first simple plication
using scaffold, was just wondering if anyone knows of any good tutorials
on how to screate custom css stylesheets for these pages.
also whats the best way to go about adding a footer / header html images
to all pages
Thanks
scott
--
Posted via http://www.ruby-forum.com/.
2005 Oct 02
1
rendering if template exists
Hi folks,
I have a component on my site called RelatedController. I intend to
put some links and content related with the current page (controller
and action). What I want to do is for the time being is
render :partial "#{@current_controller}_#{@current_action}"
Then in the component template root I have templates like
_products_index _products_cart etc. I have decided to put
2007 Dec 26
2
Importing Markdown posts to WordPress
I apologize for being off-topic, but I think there's more expertise on
this list than I'll find elsewhere.
I'm thinking about moving my blog from Movable Type 3.2 to WordPress.
As a test, I've set up a local WP installation and imported my old
posts--all of which are written in Markdown. They look awful,
primarily because the blocks of source code in many of my posts are
not being
2017 Dec 04
1
Apache and web content permissions
Le 02/12/2017 ? 16:25, Brian Mathis a ?crit?:
> You could write a script to open the permissions, apply updates using
> something like http://wp-cli.org/, then close the permissions again. Run
> it through cron so you get updates in a timely manner.
Here's a little script I wrote to automatically update Wordpress core,
extensions and themes. Works perfectly. I'll run it manually
2006 Feb 15
1
how to -- newbie
Hi ..
I am getting started with RoR and having fun :-)
So, my problem is how to integrate the static and dynamic sides of the
site I am making. I have a standard look-and-feel, the usual stuff,
graphic header, left sidebar with menu, content in the centre. Some
pages are static -- main page, contact, that kind of thing -- and some
are dynamic, such as the admin pages.
My problem is I
2017 Dec 03
0
Apache and web content permissions
Hi Niki,
The principle to work by here is 'least required access'. There's two
functional types of users we care about, the one executing the PHP
code (probably apache or php-fpm) and admins like yourself with
FTP/shell access. Upstream wordpress documents application write
requirements at
https://codex.wordpress.org/Hardening_WordPress#File_Permissions -
read it to know where the
2006 Mar 28
1
Simple Sidebar Solutions: How does yours work?
I''m working on a simple photo gallery app for personal use and I want to
generalize the sidebar such that in any page (controller or view, I''m
not sure which) I can dynamically add either
1. links to a given sidebar
2. or an entire sidebar.
I know that typo does this, and I''ve looked the code. I think it''s too
complex a solution for my simple site.
2009 Dec 05
2
Announcing a new R news site: R-bloggers.com
Hello everyone.
After some good time of work, I am proud to present: www.r-bloggers.com
What is R-Bloggers.com?
R-Bloggers.com hopes to serve the R community by presenting (in one place)
all the new articles (posts) written (in English) about R in the "R
blogosphere".
How does R-Bloggers operate?
This site aggregates feeds (only with permission!) from participating R
blogs. The