Displaying 20 results from an estimated 2000 matches similar to: "Dynamically choosing schema using one Model"
2006 Apr 18
7
Connecting to multiple databases
Hi Everyone,
I am trying to connect to multiple databases and followed along the
Recipe in Chad Fowlers ''Rails Recipes'' book (which basically is about
establishing the connection in a subclass of ActiveRecord::Base, and
inheriting all classes in need of this connection from this class)
Chad Fowler says:
"You won''t be able to instantiate an External, of course,
2006 Jan 26
3
Problems with simple scaffold code
Hi all,
I had scaffold generate some code on a brand new app the trace is here:
http://rafb.net/paste/results/H87GHC68.html
Could you point me to what problem needs to be fixed please as i''ve been
banging my head against this for some time now?
The table is very simple and its called "user" with id, email, password
fields. I''ve set pluralize_table_names to false
2018 May 06
2
How to log querystring values?
Dear Philipp,
Thanks for you reply.
My goal is to show in our analytics page segmented data (official apps,
partner apps, third-party apps, demographic and geo). To do so each app
pass some values in the query string (ie: app id, user id, lat, lng). And I
need to know those values in order to do that.
Today we are using nginx as a reverse proxy to Icecast to get those data
but it
2005 Oct 27
3
String.protoype.toQueryParams
Hi, I am trying to play with all the methods in the Array Object.
Just wanted to check with you guys if this is the correct explanation of toQueryParams().
If yes, then I''ll add it to the documentation as well.
Works for me (but I am not sure if it''s the correct way to use it).
/* String.prototype.toQueryParams takes a query string, i.e, string with
name value pairs
2007 May 19
4
button_to_function with image?
Hi:
does button_to_function allow the use of an image? I tried it in place
of the text with "image_tag" and it doesn''t work. Maybe some form of
button_to?
Any direction you can give would be great!
Mike
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2018 May 07
1
How to log querystring values?
Philipp,
Thanks so much for your time and relpy.
This dawn, before read your email, I worked to implement the URL authentication and it worked like a charm. I am still using querystring instead of custom header field because I have no control over the player. But, the excelent news is, no more rproxy! =)
And you were right, this way I have more possibilities than before!
Again,
2008 Dec 29
1
[LLVMdev] [Patch] Adding unit tests to LLVM
On Mon, Dec 29, 2008 at 1:57 PM, Misha Brukman <brukman at gmail.com> wrote:
> 2008/12/29 Talin <viridia at gmail.com>
>
>> Do the existing tests use a wildcard rule to gather all test sources? We
>> would need to insure that the wildcard rule for the unit tests and the large
>> tests are mutually exclusive.
>>
>
> By "large tests", I
2015 Feb 02
1
RFC: Handle query strings for http and https (RHBZ#1092583)
Parse the query string from URLs, and pass it as new add_drive optarg;
use it when building the file= URL for qemu.
Accept query string only for http and https protocols, for now.
---
Possibly it looks like an ad-hoc solution for http(s), although I'm not
sure how it could possibly be generalized somehow (maybe "extra params"
which would be the query string for http(s)?).
2006 Jul 20
6
replace_html + javascript
Hi all,
This is my first post to the list, so I hope it gets through and I
don''t do anything wrong :)
Here''s the issue I''m having...
I have an rjs that''s doing:
page.replace_html ''myid'', :partial => ''my_partial''
And in my my_partial I have:
<script type="text/javascript">
2008 Jul 10
2
Need Browser to Not Cache Ajax Image
I am banging my head against the wall here. I have a gd-generated image that
keeps being changed via ajax on my page. Since the image is generated based
on querystring parameters (which don''t change) but is based on a model (that
is constantly changing), the browser caches the image and you have to do a
page refresh to update the image. I have hacked around it by appending a
random number
2007 Jun 11
12
Mocking system/`
This drives me insane on a regular basis. How does one mock
system(''blah'') or `blah` ?
Adding expectations on Kernel doesn''t do it. Adding expectations on
Object just makes me sad:
Object.any_instance.expects(:system).with(''ls'')
# => #<Mock:0x12b584e>.system(''ls'') - expected calls: 0, actual calls: 1
And this really
2005 May 18
1
Mysql cmd with Asterisk Problems
Hello all:
I am trying to use the mysql command to retrieve information from a mysql
database.
my example here was formed from using the wiki reference to using the
mysql command.
The problem is with the fetch command.
Here is the macro code:
Mysql(QueryString=SELECT\ ivr-password\ from\ users\ where\ ivr-id=${userid})
Mysql(Query r ${connid} ${QueryString})
Mysql(Fetch fetchid ${r} dbuserpass)
2005 Jul 26
2
Dial using URI(web) or using FORM(web)
Hello!
I have an Asterisk@home instalation with 7 users working OK, and I'ld like
to implement either a
-- Web dial feature, where the user would fill one form field with a phone
number and a connection would be created between his extention and the
entered number.
OR
-- Dial using an URI (callto:xxxxx link in a web page), having AstTapi
installed and configured in all workstations.
2018 May 06
9
How to log querystring values?
Hello,
I need to get some values passed in the querystring request in the log
file.
Something like that bellow:
ie: "GET /radio?id=1 HTTP/1.1" instead of only "GET /radio HTTP/1.1"
Do I need to change something in the source and compile? Or there is
another way?
Best,
Thiago
-------------- next part --------------
An HTML attachment was scrubbed...
2008 Dec 29
0
[LLVMdev] [Patch] Adding unit tests to LLVM
2008/12/29 Talin <viridia at gmail.com>
> Do the existing tests use a wildcard rule to gather all test sources? We
> would need to insure that the wildcard rule for the unit tests and the large
> tests are mutually exclusive.
>
By "large tests", I assume you mean the .ll tests? Those are
one-file-per-test. Also, if you use Chris' suggestion on directories, it
2006 Feb 17
1
A unique 'click to call' project - Could use some advice <--one thing I forgot
In the example I posted previous, there is an obvious gaping security hole,
it would be trivial for someone to read the querystring and exploit it to
make free phone calls, spoof caller ID (if you allow the CallerID to be set
with a QueryString value), etc. You want to make damn sure that the URL is
not publicly accessible or somehow obsfucate the querystring, or use POST.
In my case, I
2015 Dec 02
2
RFC: arbitrary parameters for add_drive
Hi,
one of the bugs we have (#1092583) is about the lack of query string
for http/https URLs: there were patches about that (not merged yet),
whose solution was to add a new optional argument "querystring".
Another bug that I'm looking at (#1118305) is about setting initiator
IQNs for iSCSI drives; a good solution IMHO would be add a new
initiator-name parameter for this.
Thinking
2008 Oct 08
9
Plugins and the test environment
Hi guys. I''m writing a plugin for use in the test environment.
However, when I run ``rake test'''' or ``rake spec'''', RAILS_ENV is set
to "development" when my plugin''s init.rb is run.
How do you configure a plugin to load require a file in the test
environment?
Thanks,
Nick
--~--~---------~--~----~------------~-------~--~----~
You
2008 Dec 29
3
[LLVMdev] [Patch] Adding unit tests to LLVM
Do the existing tests use a wildcard rule to gather all test sources? We
would need to insure that the wildcard rule for the unit tests and the large
tests are mutually exclusive.
Also, will the unit tests be one executable or many? They will probably
compile/run faster if there is a smaller number of executables.
On Mon, Dec 29, 2008 at 1:43 PM, Misha Brukman <brukman at gmail.com> wrote:
2006 May 01
4
URL encoding in Rails?
Simple question:
How does one do URL encoding in Ruby/Rails?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.