Displaying 20 results from an estimated 2000 matches similar to: "Newb - variable returns # sign?"
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
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
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
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.)
2012 Feb 10
2
Discrete Event Simulation problem
Hi All,
I am attempting to simulation an inventory model on R and I am having some
problems. I believe the problem is when I define my demand rate is stays
constant throughout so when I do need to reorder the model does not
recognise it as I have the initial supply arrival time set to infinity at
the start as no order has been played but I have an if statement saying, if
the level falls below a
2006 Jan 19
8
I can''t figure out how to solve this one
I am creating an application to run a fishing tournament (see http://
www.ruby-forum.com/topic/51209 for a little background)
Now I am running into an issue trying to calculate a leader board.
each participate can enter multiple fish but only the largest fish
per a given species counts towards the overall score. My entries
table looks like this:
2007 Dec 17
2
Many domain - one rails application
If I have many domains and one rails application, how can I redirect to
conrollers by domain?
Ex. "domain.com" go to controller "/com", "domain.net" go to controller
"/net" and "other.org" go to "/other"
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you
2012 Dec 12
8
puppet dashboard inventory
I have a puppet master install which uses puppetdb. I also have puppet
dashboard installed with the inventory service running. I want multiple
puppet masters using a single puppetDB server. Puppetdb is installed on
separate vm.
How can I get the dashboard inventory to use the puppetdb server to get the
inventory records? Where do I configure the dashboard inventory so it uses
puppetdb?
I
2011 Jul 23
2
Dashboard not retrieving inventory
Hi All,
Puppet-dashboard appears to be having some trouble. Under inventory, it says:
"Could not retrieve facts from inventory service: Permission denied -
certs/dashboard.private_key.pem"
When I run:
curl -k -H "Accept: yaml" https://puppet:8140/production/facts/host.domain
I get the expected dump of facts.
Versions:
puppet-dashboard is 1.1.0 (using passenger)
puppet-master
2006 Apr 18
1
''wrong number of arguments'' for text_field?
This is probably something very simple but I can''t seem to figure out
why I keep getting the ''wrong number of arguments (1 for 2)'' error with
the following code when I try to create a new record. If anyone can see
what is going wrong here please help!
new.rhtml
-------------------------------------------------
...
<%= start_form_tag :action =>
2011 Feb 07
2
Puppet CA Inventory and Serial # file... unique format?
I''m working on a system for auto-resigning certificates for our clients and Iv''e basically got it working .. but I notice that Puppet uses an inventory file and a serial # file that seem to be differently formatted than the openssl toolkit uses? The serial number file that puppet generates has a 4 digit number starting with 0000... but openssl tracks its serial numbers in a hex
2005 Oct 11
2
Pushing Javascript Helper to external file.
I have a table and when I mouseover a row I want a pop-up with some
additional information for that specific row (called remotely).
I can do this easily with something along the lines of...
onmouseover="<%= remote_function(:updated => "notediv", :loading => "
Element.show(''note'');", :url => {:action => ''get_note'', :id
2006 Aug 15
6
try creating a table for your model
Railers:
Greetings from the low end of the learning curve. I have installed all
the prerequisites on Win32, including a lite MySQL database with a
table in it called Inventory.
Then I run this command line...
ruby script/generate ajax_scaffold Inventory
...and I get this error message:
error Before updating scaffolding from new DB schema, try creating
a table for your model
2005 Oct 04
2
newbie questions - looping through hierarchial datafille
Dear List,
Im new to R - making a transition from SAS. I have a space delimited file
with the following structure. Each line in the datafile is identified by
the first letter.
A = Inventory (Inventory)
X = Stratum (Stratum_no Total Ye=year established)
P = Plot (Plot_no age slope= species)
T = Tree (tree_no frequency)
L = Leader (leader diameter height)
F = Feature (start_height finish_height
2017 Nov 13
2
SAMBA4 API
I am looking for a way to programatically modify DNS settings from outside
of my SAMBA4 DCs.
I am working on creating a PHP inventory page, which (in an ideal world)
would hook into our SAMBA4 domain controllers, allowing us to modify DNS
records in the inventory, and then have the backend of the inventory
communicate with the DCs over an API and modify the DNS on the DCs.
Is it possible that
2011 Mar 18
4
Inventory service and dashboard 1.1.0 rc1
I just set up the latest dashboard release candidate in hopes of
trying out the new inventory service. After modifying the puppet-
dashboard config to use the inventory service and after changing my
auth.conf I gave it a whirl but ran into some issues..
I initially tried using fact_terminus = yaml and was able to do some
queries via curl. I''m currently using storeconfigs so setting up
2017 Nov 14
2
SAMBA4 API
>From the inventory server, which is a separate server from the DC. it's a
FOG server which has had several additional tables bolted onto the database
and a PHP inventory page added to it.
On Tue, Nov 14, 2017 at 12:05 PM, Rowland Penny via samba <
samba at lists.samba.org> wrote:
> On Tue, 14 Nov 2017 11:48:29 -0600
> Taylor Hammerling <thammerling at tcsbasys.com>
2006 Aug 15
5
Set up a default route
Phlip wrote:
> Can I fix it by adding a view called ''inventories''?
That worked, because I have a sufficiently late version of MySQL.
Next question. What does "Set up a default route" mean?
When I read...
http://wiki.rubyonrails.com/rails/pages/Routes
...it reminds me of the Apache documentation for mod_rewrite. I hope
someone appreciates the candor of my