Displaying 20 results from an estimated 7000 matches similar to: "Many domain - one rails application"
2007 Nov 29
27
Strip & Sanitize BEFORE saving data
So I''ve googled my brains out, and I see a lot of talk about
TextHelper for views, but next to no discussion about cleaning text
_before_ it is saved.
I figured this had to be asked 4 zillion times, but I''m not finding
anything concrete/obvious.
Using h is fine as a safety catch, but that alone is not acceptable
to me as the means of diffusing the impact of HTML or JS
2006 Jul 01
8
Seeking Advice on Pattern for Multi-Organization Application
I am the developer of FreeMIS - an Open Source management information
system for schools. It currently holds the data for one school - so
different schools host different instances of FreeMIS.
I would like to expand the domain of a single instance of FreeMIS, so
that it covers all the schools in an education authority. THis will
enable me to implement authority-wide functionality.
Is there
2007 Nov 16
4
Newb - variable returns # sign?
Hi Gurus-
I want to return the variety from the species table based on the
active record link to inventory table
class Species < ActiveRecord::Base
has_many :inventories
end
class Inventory < ActiveRecord::Base
belongs_to :species (this is the singular and the plural, so that''s
OK)
end
My inventory_controller looks like:
def show
@inventory =
2007 Nov 27
2
rendering this to the html page
hi guys,
i have develop some coding like login forms and registration forms in
normal ROR way. they are working 100% ok as i want.
bt not i have created the html interface to my page and find dificult to
add the ROR components that i have created to the newly design web
interface.
For a example.
in the in my HTML file i have a allocate separate area(in the top right
hand corner of the page.)
2008 Jun 07
3
DRY validates_format_of?
In a model I have following validates_format_of. Is there an easy way to
DRY this up? It seems to be rather repetitive.
validates_format_of :expiration_date, :with =>
/^[0-9]{4}[-][0-9]{2}[-][0-9]{2}$/
validates_format_of :activation_date, :with =>
/^[0-9]{4}[-][0-9]{2}[-][0-9]{2}$/
validates_format_of :some_other_date, :with =>
2007 Nov 23
2
Capture IP Address to Sessions
What I''d like to do:
Capture the IP addresses of the folks visiting a web site in the
Sessions table.
What needs to be in place (code, model, controller, etc.), where does
it need to go (application controller?), how best to set up the
Sessions table?
Appreciate a noob-friendly outline of what needs to be done.
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You
2007 Nov 16
3
Route Information
Is there a method to return a hash of the route configuration based on
a path?
For example:
magic_method(''/my_controller/my_action/my_id'')
=>
{:controller => ''my_controller'', :action => ''my_action'', :id =>
''my_id''}
Thanks!
Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message
2007 Nov 21
1
iText, Rails, and OS X
I have the need to take existing PDFs and populate them with data
entered via HTML forms. Data saved to database, entered in to PDF
file, PDF file with data archived, and then distributed va email and/
or download.
The languuage I previous did all my web work in, Lasso, had this
stuff built in, but it appears not to be so with Ruby or Rails.
The latest info I can find on this is a year
2006 Jul 16
2
how does base camp manage there accounts
hi,
Cant find any information this anywhere so was wondering if anyone had
any ideas.
Basically when you go to basecamp.com it allows you to sign up for a
account and gives you a url username.projectpath.com
I was just wondering how they do this, and if each account has there own
database or if it is all stored in one.
thanks
scott
--
Posted via http://www.ruby-forum.com/.
2007 Nov 14
6
a few add_index questions..
on previous apps i hadn''t really worried much about adding foreign key
indexes on my tables just because they''ve been fairly small and i
didn''t really think i needed them.
well, i''m working on something now that has the potential to have a
lot more data, and a lot more foreign keys.
so i have 3 tables... users, projects, and tasks.. should i be using
add_index
2008 Feb 08
1
Wildcard Subdomains & OS X Local Development
I''m using the simple account_location plugin to have virtual
subdomains on my app (account.myapp.com - see Basecamp, Blinksale,
etc.)
How do you go about setting up your OS X system to play nice? I''d like
to use Apache & Mongrel.
Notes: The only thing I''ve able to accomplish is hardcoding the
subdomains directly in my hosts file. I can get
2006 Apr 16
11
Multiple domain name, One Rails application, is this possible?
Hello folks,
I''m new to the Rails framework and don''t know where to look to find my
answer.
Here is the question, Is there a way to set multiple domain name for *a*
rails application, and base on the URL do the work in the app.
Imagine I have a user based document management system, each user want to
access to her docs using her domain, but I don''t like to have many
2006 Jan 25
6
Displaying based on hostname/subdomain
Ive tried multiple ideas to get this to work, but keep hitting a dead
end. Has anyone done this before?
I want joe.domain.com to display www.domain.com/profile/joe
Im using lighttpd.
Routes dont have access to the URL string and therefore I cant code in
a conditional. lighttpd rewrite seems to really screw it all up. Is
there a feasible solution?
Thank you,
Joe Noon
2006 May 09
4
subdomain
hi,
how to create a subdomain outside the public directory
and how to redirect to the subdomain
--
Posted via http://www.ruby-forum.com/.
2008 Jan 09
9
mongrel, monit, and the many, many messages
Monit 4.9, Mongrel 1.0.1, Rails 1.2.6, Mac OS X 10.4.11 (PPC)
I don''t know whether this is a mongrel issue or a monit issue.
I''m trying to poke my way around a system set up by someone else. I have
no more experience w/ mongrel that local Rails dev at this point, and a
conceptual understanding of how monit is working. I have the Deploying
Rails beta book, and I''m
2007 Oct 25
1
Mocking/Stubbing help with subdomain as account key
My app uses account_location to set up subdomains as account keys. In
my controllers, all my model operations are scoped through the
@current_person object.
The question is: How do I test this with RSpec''s mocking and
stubbing? Basically, I need to test that @current_person.things is
getting the find message and returning @thing. I''ve tried stubbing
and mocking
2007 Dec 02
0
UTF8 Regex in 1.2.x
So, I''ve been pounding the web for info on UTF8 in Ruby and Rails the
past couple days to concoct some validations that allow UTF8
characters. I have discovered that with the patches applied in Rails
1.2, I can get a little further by doing the following declaring
$KCODE = ''UTF8'' in environment.rb and by adding /u to regex expressions.
The only thing not working
2006 Jun 10
2
username.tadalist.com - How?
Hi. I was wondering how to do this in rails where the user gets a
subdomain in the link of the site.
example: username.tadalist.com
Or if you know of a reference, please point me to it.
Thanks
--
Posted via http://www.ruby-forum.com/.
2016 Nov 02
1
getent not displaying builtin groups or users
hi Roland
> On Tue, 1 Nov 2016 11:00:15 +0000
> niya levi via samba <samba at lists.samba.org> wrote:
>
>> hi everyone
>>
>> i have configured 2 domain controllers and a domain member
>>
>> the domain member is joined to the domain and
>>
>> ad and rfc2307 is configured for idmap backend,
>>
>> wbinfo returns domain builtins for
2008 Apr 13
3
Can't get simple link_to_remote to work
AFAICT, this is all I need to do to get a simple example working:
the <head> should have this:
<%= javascript_include_tag :defaults %>
My test page view should have a div with an id and the ERB like this:
<%= link_to_remote ''Click Me'',
:url => {:action => ''show_time'',
:update => ''time_box''} %>