Displaying 20 results from an estimated 600 matches similar to: "AJAX & Partials"
2007 Aug 14
12
ruby on rails web calendar
Does anyone know of a good web calendar that you can use to display
appointments, dates, anniversaries, birthdays, recurring appointments,
appointments spanning multiple days?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2006 Nov 18
1
ETS eMoney?
Anyone used ETS Corporation''s EMoney ECOM Gateway ?
I''m working on a project that will have to interface to it and if the
work has already been done was
hoping not to re-invent the wheel.
Failing that, which payment gateway gem option is better -
ActiveMerchant or Payment, or are there others ?
I''m willing to add the work done for this to whichever option we use in
2006 Mar 08
4
Performance with many look-up tables
Hi,
I have an app - a first cut ROR - so it''s a bit of a mess. I''m now
trying to clean it up. The app relies on a heap of look-up tables that
are, by and large, static. I''m wondering where and how to initialise
these collections once - so that I don''t have to keep hitting the
database every time I start a new action.
Can I initialise the collections at the
2005 Jan 10
1
Re: Toronto
It looks like this meetup group is becoming the venue for contact as
most "Toronto" respondents have signed up here. Can I request that the
remainder who responded to the "Toronto" call signup?
Shidan is the organizer and has proposed a date. I'd hate to confirm it
without the remainder having input - especially those with travel times
like Andrew K. out in Listowel.
2006 Jun 16
5
BackgrounDRb / Testing Error: uninitialized constant BackgrounDRb
I''m digging into BackgrounDRb and having some problems testing a worker class.
The following line in my test (created from script/generate worker
Test) throws an error:
worker = TestWorker.new(:test_string => "testing...")
Error:
/activesupport/lib/active_support/dependencies.rb:123:in
`const_missing'': uninitialized constant BackgrounDRb (NameError)
from
2005 Apr 20
5
ActionMailer: Net::SMTPSyntaxError (502 unimplemented (#5.5.1) error
Quick ActionMailer Question:
I''m trying to send a test email message using ActionMailer and I get a
Net::SMTPSyntaxError (502 unimplemented (#5.5.1) error.
I''m attempting to access a remote smtp server and have setup my
settings in the environment.rb file according to the "how to" article.
My test controller:
class MailTestController < ApplicationController
2004 Sep 04
3
Question on echo's for Canadian Asterisk users ...
Has anyone has issues with echo using a Wildcard with a PRI from a
major Canadian Telco? (Bell, Telus, AllStream, Sprint, Group Telecom).
We are using a T1 from GT that is giving use annoying echos whenever a
SIP/IAX2 client calls a
local analog line. Calling cells phones is no issue since its digital.
Regardless, there should
be no issue with echo on a PRI at all.
NOC at GT is telling us
2006 Feb 17
16
Booking system
Hi!
I''m planning a booking system in rails, and I have the following issue:
There will be room_types. I can implement this with STI in the rooms
table, or with a separate table room_types. Each room type will have its
special features.
For example, a double room can be:
--
Posted via http://www.ruby-forum.com/.
2007 Jul 02
3
list box poupulation using php,mysql and ptototype
I have some problems with php and Prototype.I am trying to implement
listbox population (second dropdown box values depend on first
dropdown) using php,Mysql and Prototype.But i have no idea how to
implement . I hope you all have sucessfully done this, please show me
an example
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2006 Apr 15
1
Right way to pass conditionals to partials
Hi All,
I have some partials that need to be rendered a bit differently
depending on the context. To make matters worse, sometimes these
partials are including other partials, that I''d like to control from the
main template. These partials are templates that look similar in
different contexts, but have different controls depending on where
they''re being rendered. I
2006 Jun 24
3
Staying DRY -- can views share partials?
Let''s say I have a "main" controller/view and a "sub" controller/view.
If I have defined a partial in "main" for the site header
(_site_header.rhtml) can I share it with "sub" or does "sub" have to
duplicate it, use a symbolic link to the file, or convert the cool
partial into an ugly helper?
It would be nice to have a shared placed
2006 Mar 09
4
calling partials from public/*.html?
Can I call partials from html files in public?
Is this wise?
I''ve got a bunch of html files and I''d like to let them have access to
pieces of Rails, but I''d like to manage them through Contribute or
some such.
I *could* wiki them up, but that seems like a lot of work for pages
that don''t get updated that often (yearly or so).
Thanks in advance!
- Dave
--
2006 Nov 04
1
Partials shared between multiple controllers
(Just getting started w rails, web app dev for a long time...)
I have some partials that are common across multiple controllers. They''re
not universal, so they don''t belong to be part of these controllers''
layouts.
It appears that I can put them at the root of /views/, and render them using
a relative path, like so:
<%= render :partial => "./footer"
2006 Jun 19
2
Partials from a master layout?
Hi
I am using a ''master'' layout in my project by putting "layout ''main''" in
my application controller so that the same layout is applied to every
controller and I would like to use partials in the layout file (obeying
DRY, of course!) but if I render a partial in the layout then whenever
the layout is rendered by a controller the layout looks for
2008 May 08
0
stub sub partials when testing partial with rspec
Hello all
I prefer to use many partials. It makes my code more DRY
Also I use rspec, and when I have to test partial with sub partials I
have a problem.
if I stub render, then my partial will not be rendered. If i do not
stub render it tries to render sub partial (and i don''t need this)
Not very long googling did not bring the answer, so I made very dirty
and IMHO dangerous function
2005 Dec 13
1
Locals and partials
Since i can''t figure out how to use heredocs with erb. im looking at
solving my problem
with partials, but since partials seem to have a completely separate
namespace/scope
im looking for a way to pass the entire scope of the calling rhtml to
the partial.
------------------------------------------------------------------------
Hunter Peress
2010 Jul 15
2
Can partials be accessed from two views?
For me to keep my application DRY i need to be able to have partials
that can be accessed from two views. How is would I go about doing this?
Many thanks,
jakx12
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2008 Oct 16
1
Modularisation: Using helper generating HTML output vs. using partials
Hey,
I''ve got a general question: when do I use helper and when I do use
partials to modularise certain gui elements?
For example: I''ve got a faq list. Each item can be folded and unfolded
using ajax.
FAQ foo
-> question 1
-> question 2
-> question 3
So, I wrote a helper "faq_li_tag(args)" which takes the question and
answer for parameters and generates the
2012 Sep 05
2
Partials and helpers
Hi,
Is there any reason why helpers cannot render partials?
I would like to do something like this in the layout:
<body>
<%= magic_header %>
<%= yield %>
</body>
and then have a magic_header helper
def magic_helper
...do some magic...
render partial: "magic_helper"
end
Why is this wrong?
Cumprimentos,
Luís Ferreira
--
You received this
2006 Jun 25
4
Zebra Striping a Collection of Partials
I''m using render to display a collection of partials, where each partial
is a table row. Is it possible to zebra-stripe the table using this
method i.e. alternate table rows get a different CSS class? I can''t work
out how each row partial would know whether it was odd or even.
In the normal scheme of things I could do:
<% odd_or_even = 0
for asset in @assets