similar to: rendering this to the html page

Displaying 20 results from an estimated 1200 matches similar to: "rendering this to the html page"

2008 Jan 23
1
how to create the solr index from the data getting from two
Hi All, I need to create the solr index from the data getting from two tables in the database. doe any one know who to archive this. Bz still i only found that we can do ht e solr index only from one table. so any body know about this pls help. Thanks Nadeesha -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you
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
2010 Jun 11
5
Issues creating tables in mysql tests
Hello, I''m a beginner, so any hints are appreciated; I''m still trying to find my way around Rails code. For a bug I''ve found I need to create a table called "values" so I added this: create_table :values do |t| t.integer :value end among the other table creations in activerecord/test/cases/migration_test.rb. Is that ok? But then, when I run the tests
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 01
1
How to pass data from a view to a partial rendered in a layout?
In the application I''m working on, a layout renders a partial that displays a breadcrumb navigation bar across the top of a page. In other words, the layout renders a partial that displays breadcrumbs. But the navigation bar rendered by a partial in a layout needs to use data from the view to determine which breadcrumbs to display. My question is: how can data be passed from a view to
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
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 =>
2006 Oct 23
8
Asterisk and dialer Running on Thin Clients
Hi everybody Im the IT Manager for a new call center and my bosses has assing to me a very dificult task i have to configure the call center using Hp 5520 thin clients, asterisk and some kind of dialer that allows outbound calls. I triyed using terminal services but it dind worked because the lack on the sound and the microphone do not work on the thin clients using terminal services, we tried
2009 Aug 23
2
difficult "for"
Hi, My english isn't brilliant and my problem is very difficult to describe but I try ;) My first question is: May I write loop "for" like this or similar - for (i in sth : sth[length(sth)], k in sth_else : length(sth_else) ) - I'd like to have two independent conditions in the same loop "for". My secound question depend on program below. I'd like to write every
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 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 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
4
How to pin down location of views/shared directory ?
My app has a header & footer I want common to each section. They live in app/views/shared/_header.rhtml & _footer.rhtml. They are referenced by app/views/layouts/application.rhtml as one would expect: <div id="header"> <%= render :partial => ''shared/header'' %> </div> They contain many lines like this: <a
2006 Jun 13
10
OPENSER / SER and Asterisk
While reading about how to maximize capabilities in asterisk i have read about SER and OpenSER. The sites do not explain to newbies (maybe that's on purpose) what are the benefits of using those products tied with asterisk (or is SER an asterisk replacement??) Can someone give me an idea of what's the usage for open(ser) and asterisk? is it for scalability? should I run it in the same
2006 Mar 10
2
adding to has_many on create and edit
Hello, I am fairly new to RoR and I have a question I hope can be solved elegantly (so many things are, so why not this one too?). I have a working solution, but I want to be sure I am doing things the "rails way" (having come from PHP). You could say I am looking for a little validation (no flames please). I have a table of units like so: CREATE TABLE `units` ( `id`
2007 Oct 21
2
Help installing Rstem package
An embedded and charset-unspecified text was scrubbed... Name: n?o dispon?vel Url: https://stat.ethz.ch/pipermail/r-help/attachments/20071021/3a2e8c5b/attachment.pl
2011 Mar 18
3
alghorithm of working encoder in libtheora
Hi, Is somewhere alghorithm description of encoder process implemented in libtheora? May be some drafts? May be frame dataflow throw encoder stages? PLEASE -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora/attachments/20110318/c3e8e109/attachment.htm
2008 Dec 19
2
Conference with an AGI inside Queue for password change
Hi, I have a typical call center with queues and agents added via AddQueueMember. One of my requirement is to implement a forgot password function. If a caller does not remember the password, he calls up an unauthenticated line and the agent manually authenticates him. Then the caller should have a provision to reset his password. The requirement is that the agent should not know the new password
2020 Feb 20
5
GPO redirected folders reg path issue
We are not much off. But you have mixed "samba/window" and "windows/windows" settings. Samba/windows \\%logonserver%\home\%username%\desktop Windows/windows \\hostname.fqdn.tld\users\%username%\desktop Guess, which one i use. ;-) Now, do get where this is coming from. So use this (add CNAME for you member server ), Note, you MUST setup PTR records.