Displaying 20 results from an estimated 500 matches similar to: "Is this the "right way"?"
2006 Nov 28
1
observe_form, observe_field, dynamic forms help
I made a pretty lengthy post on what I''m doing here:
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/89a2b8e54a874dd9
Short version:
I have a radio_button group of two. If one is clicked another pair of
radio buttons is added, if the other is clicked it is removed.
observe_form does not work for elements added after initial page load.
observe_field does not work
2017 Oct 06
1
ACL permission: give permission to move email into different folder
> On October 7, 2017 at 1:29 AM Aki Tuomi <aki.tuomi at dovecot.fi> wrote:
>
>
>
> > On October 6, 2017 at 11:44 PM Davide Marchi <danjde at msw.it> wrote:
> >
> >
> > On 06.10.2017 12:42:22, Aki Tuomi wrote:
> > [..]
> > >>
> > >> Maybe it is not possible with Dovecot?
> > >>
> > >> Many
2006 Sep 06
1
31K failed stat64's when viewing a simple (no db) rhtml page?
I''m trying to help the sys admins of my server figure out what is up
with our Rails installation (debian sarge - completely up to date).
Hitting a simple page yields 31,000 failed stat64''s and takes anywhere
from 8 - 44 seconds. They #! for ruby is correct everywhere, but it''s
like it can''t find Rails. These are box stock standard installs.
Here''s
2007 Aug 13
1
Extract part of vector
Dear R-users,
How do I extract numbers between asp?P= and &VID from my txt vector? I have
tried grep function with no luck.
txt <- c("
http://www.mysite.com/system/empty.asp?P=2&VID=default&SID=421384237289476&S=1&C=18631",
"
http://www.mysite.com/system/empty.asp?P=123&VID=default&SID=421384237289476&S=1&C=18643",
"
2011 Jan 29
2
sql : uid, gid, home ignored ?
Hello,
I'm trying to setup a dovecot imap server.
version is 2.0.9
I've setup a mysql database using:
user_query = \
SELECT home, uid, gid, home as userdb_home, uid as userdb_uid, gid as userdb_gid, \
FROM user WHERE username = '%n' AND domain = '%d' AND active = 'Y'
password_query = \
SELECT username AS user, password, home as userdb_home, uid as
2006 May 30
11
Another String Manipulation Exercise
Hi guys,
And I thought it wasn''t a problem. Here''s my string
"/var/www/vhosts/mysite.com/httpdocs/public/file/mypic.jpg"
How do i take out all the text that comes before "mypic.jpg"?
Trickier than I first thought.
TIA,
Bing
--
Posted via http://www.ruby-forum.com/.
2007 Feb 09
3
Re: URL issues
hello...
On 2/8/07, cdvr <codecraig-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Hi,
> I watched the rails screencast on creating a blog in 15 minutes.
> I followed along got it working on my home PC and I then uploaded it
> to my web host. So I have,
>
> /home/<username>/blog
>
> I had to change some config in the blog app (i.e. production
2010 Dec 01
10
How to Redirect from http://mysite.com to https://www.mysite.com on Herok
Hello I''m looking to learn how to redirect all non-www (mysite.com) to
https://www.mysite.com
I tried the following:
class ApplicationController < ActionController::Base
before_filter :check_uri
def check_uri
redirect_to request.protocol + "www." + request.host_with_port +
request.request_uri if !/^www/.match(request.host) if Rails.env ==
2007 Jan 03
12
Frustrating Error
I am followint this article,
http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/
...but I keep getting this error in the log...not sure what to try next...
** Daemonized, any open files are closed. Look at log/mongrel.8000.pid and
log/mongrel.log for info.
** Starting Mongrel listening at 127.0.0.1:8000
2008 Jan 23
7
Apache, Mongrel, Authentication
A question about mongrel, apache and authentication.
I''ve got a Rails site with I think a very typical setup: a mongrel
cluster behind an Apache proxy. So Apache''s handling the static stuff
and it hands off dynamic content to mongrel. I want to put the site
temporarily behind Apache''s basic authentication. What I get when I
do this is that is a password prompt which
2005 Nov 22
4
multiple rails apps on one lighttpd
Good evening (or afternoon or whatever it is where you are),
Before I start setting it all up, I have a question about lighttpd and
multiple rails apps. From what I have read, it is at the minute only
possible to do multiple rails apps using subdomains:
typo.mysite.com
hieraki.mysite.com
rforum.mysite.com
etc, etc
and not currently possible to do this:
mysite.com/typo
mysite.com/rforums
2007 Nov 27
1
routing
Hi all,
My site uses subdomains to define an item. Eg http://itemname.mysite.com
I fetch the itemname and render the appropriate site from that
itemname. The subdomain is used everywhere (eg http://itemname.mysite.com/events,
http://itemname.mysite.com/products/show/11, ...)
I now want to give the user the possibilty to use a ''real'' domain like
www.itemname.com that should
2006 Jul 04
2
links to images keep breaking
Hi,
I have a catalog that has images in it. The images are stored in
public/images/....
When I open the catalog via the catalog controller I get this url:
http://127.0.0.1:3000/images/sow/sow.jpg
for the images and they display correctly.
When I link to the catalog from another controller and view I get this:
http://127.0.0.1:3000/catalog/images/sow/sow.jpg
If I attempt to put and image
2014 May 21
2
Icecast2, ezstream and reverse proxy
Hello
Ezstream is working well locally with Icecast2 on port 8000 on a Debian Wheezy platform. However, I use a reverse proxy (Pound) to pass all requests from the Internet for x.mysite.com to backend localhost:8000 i.e. my Icecast2 server. This works fine, i.e. x.mysite.com brings up the Icecast2 Status page. My problem is with the ezstream xml configuration <url></url> setting which
2006 Jun 22
2
[PLUGIN] url_for_with_prefix - allowing you to modify/remove prefixes easily
Here''s the readme. I think it''s okay to post this kind of thing to
the mailing list. Anyway, hopefully someone else finds this useful.
UrlForWithPrefix
================
By Pat Maddox
Very simple plugin, adds the :prefix option to url_for.
Say in your environment.rb file you''ve got
ActionController::AbstractRequest.relative_url_root = "/super"
Any time
2006 May 03
8
hiding table IDs from users
I was wondering if anyone had thoughts on the most efficient way of
making sure users never see internal table IDs? Clearly, scaffold views
show a lot of IDs by default and those can be hidden. The problem seems
to be all of the IDs that Rails passes around in URLs (such as
http://mysite.com/user/show/12345).
My primary concerns are security and confidentiality--one can imagine
that there
2012 May 27
2
Setting Up A Rails App With Passenger
Been trying to get Passenger installed and setup to run a rails app.
Everytime I goto eaa.mysite.com in Firefox the web browser goes out to
the Internet instead of serving up the website. Why does this occur?
Below is part of the configuration for apache2.conf:
=======================================================
# Setup a virtual host for the rails apps to run in.
<VirtualHost *:80>
2006 Apr 21
4
Simple Controller/Routes Question
This is probably a very basic question, but what is the proper
controller & routing setup if I''m setting up a RoR site with static
pages, like:
http://mysite.com/about
http://mysite.com/services
http://mysite.com/contact
I want each of these pages to use a single template file that I can push
content to. It seems like overkill to create individual controllers for
about,
2006 Jul 22
3
Newbie: Replacing index.html in public folder
Hi,
Can anyone tell me how can I achieve this:
Say if I have a e-commerce site, I want to list all the products when
user type in www.mysite.com Not www.mysite.com/products
Please note there is no controller in the URL, how do I replace the
default Rails index.html and display my products page.
Hope my question makes sense.
--
Best regards,
Ming Ma
2013 Feb 22
1
Variables within Manifests question
Hello all
Can someone please help me or answer if this is possible
I''m using the puppet forge IIS module, and want to use variables within the
syntax dependent up ip address
for example:
colo_a = 1.1.1.0
colo_b = 2.2.2.0
if $network_local_area_connection = 1.1.1.0
add colo_a
elseif $network_local_area_connection = 2.2.2.0
add colo_b
iis_site {''mysite.co.uk'':