search for: railsdev

Displaying 19 results from an estimated 19 matches for "railsdev".

Did you mean: railsdav
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.)
2010 Jun 11
5
Issues creating tables in mysql tests
...test/cases/validations/i18n_validation_test.rb" "test/cases/validations/uniqueness_validation_test.rb" "test/cases/validations_test.rb" "test/cases/xml_serialization_test.rb" "test/cases/yaml_serialization_test.rb" /Users/pupeno/.rvm/gems/ruby-1.8.7-p174@railsdev/gems/bundler-0.9.26/lib/bundler.rb:72: warning: instance variable @setup not initialized /Users/pupeno/.rvm/gems/ruby-1.8.7-p174@railsdev/gems/bundler-0.9.26/lib/bundler/runtime.rb:145: warning: method redefined; discarding old path /Users/pupeno/.rvm/gems/ruby-1.8.7-p174@railsdev/bundler/gems/arel...
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
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 21
1
iText, Rails, and OS X
...so with Ruby or Rails. The latest info I can find on this is a year old now, and involves a lot of DIY Java and RJB -- not particularly interested in having to go that route. Has someone made the integration of iText and Ruby on OS X something of a click & go process yet? -- gw (www.railsdev.ws) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group,...
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 =>
2007 Nov 29
27
Strip & Sanitize BEFORE saving data
...this (that I can see), so I''m hoping that''s because there''s a common technique which combines some other tool with validations to do this? What I''m thinking of is something like strip_tags except that it is usable on the model side of things. -- gw (www.railsdev.ws) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group,...
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 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 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 Nov 13
4
Public folder simple question
Hi to all, I''ve a simple question: does it possible to change the public folder address based on database value into application controller ? This because I must handle a multidomain rails application and I must separate the public folders for each different domain... Thanks in advance... -- Gianluca Tessarolo TreNetMediaMaster S.r.l. The Internet Technology Company Telefono
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 Dec 02
0
UTF8 Regex in 1.2.x
...led the experiments down to realizing I can''t define a range with \x Is this just one of those things that just doesn''t work yet WRT Ruby/ Rails/UTF8, or is there another syntax? I''ve scoured all the regex docs I can find. -- def gw acts_as_n00b writes_at(www.railsdev.ws) end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this g...
2011 Mar 25
4
how to solve ActiveRecord::ConnectionNotEstablished
*im using mysql as a database* * * *im getting the error which says that * ActiveRecord::ConnectionNotEstablished in GreetingsController#index ActiveRecord::ConnectionNotEstablished Rails.root: C:/railsdev/hello Application Trace <http://localhost:3000/#> | Framework Trace<http://localhost:3000/#> | Full Trace <http://localhost:3000/#> app/controllers/greetings_controller.rb:7:in `index'' *please assist me with this.* * * *thanks* -- You received this message because yo...
2006 Apr 28
35
what''s your rails wishlist?
I''ve been working with rails for a while now. Rails is the second web framework I''ve tried. It blows the doors off catalyst (perl''s best framework). I even just wrote my first plugin (broomstick). Ruby''s ability to meta-program blew me away with it''s ease of use. I''ve been so impressed with the helpers that rails uses to make a lot of
2006 Jun 10
2
regex help
I am trying to write a model validates_format_of that will accept a field containing only certain characters. I want the field to only allow the following characters: a-z, A-Z, 0-9 and the ''_'', ''@'', ''.'' and ''-'' characters. I have hunted around a bit and came up with this: validates_format_of :password, :with =>
2011 Jun 08
3
Spreadsheet in Rails
Hi, Please help to create a spreadsheet view in rails application. Need to display the cell values from DB with manipulating option. Please specify gems/plugin if available. Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to