similar to: Can partials be accessed from two views?

Displaying 20 results from an estimated 10000 matches similar to: "Can partials be accessed from two views?"

2009 Oct 06
7
rails: command not found on Debian lenny
I installed ruby gems from their website and installed rails using gem install rails I got a successful installed notification. But when I tried to use rails command, it gave me command not found. After I installed gems. I had to create a symbolic link otherwise gem command wouldn''t work. Anyone know how to get rails to work? Thanks!!
2012 Feb 14
6
cannot load such file -- openssl (again)
This problem has been discussed a number of times, but none of the given solutions seems to work for me. Problem: Trying to generate the infrastructure for testing with Cucumber gives the following error ~/.../OTK-register$ rails generate cucumber:install /home/tpollak/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in
2009 Nov 23
8
Beginner's challenge
Hello, I begun my journey in Ruby on Rails last Saturday and I am having some challenges specifically about the db Where should I go for the specific error listing and how it may be resolved. I googled and most that I''ve searched are not helpful. D -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2010 Jul 18
3
Passenger configuration
Hello Experts, I am developing a site that will be deployed on dreamhost. My Development environment is as followed. Development H:\mywork\QMed\KIMS_banglore\rails_apps\kims_sachin2.0>ruby script/ about About your application''s environment Ruby version 1.8.6 (i386-mingw32) RubyGems version 1.3.7 Rack version 1.1 Rails version 2.3.8
2009 Sep 30
17
Apache2.2 + what to get Rails
Me: not experienced with Rails or Ruby, Problem: Ubuntu 9.04 server in my shop ...couldn''t get Apache2.2 + Passenger + Rails to work for Redmine. (No answer at Redmine list and I don''t think its their problem anyway). Also couldn''t get Apache2.2 and just Rails to work, though some people said it would. Webrick works. Goal: run Redmine on a server that also runs PHP
2010 Aug 19
6
Depreciation warning when running a db migrate!
Hey, Whenever i try and run a db migrate i get this error: DEPRECATION WARNING: Rake tasks in vendor/plugins/livevalidation/tasks and vendor/plugins/restful-authentication/tasks are deprecated. Use lib/tasks instead. (called from /Users/Zack/.gem/ruby/1.8/gems/rails-2.3.8/lib/tasks/rails.rb:10) I tried moving the different plugins task rake files to lib/tasks and i got no error but the database
2010 Jan 12
4
how to create portable rails app?
Hi, i have a rails app which is done with instant rails, now i need to take the app to other computer and use it without migrating , that is plug and play use of that application, can anyone help with that??? plz! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,
2010 Apr 19
2
Acceder a varias tablas
Buenas, He creado dos andamios para dos tablas a la que accedo por index1 e index2 respectivamente. En cada index puedo hacer las tareas de aƱadir, borrar, ver lineas... pero me gustaria saber como se hace una busqueda mas compleja...es decir si tengo una tabla Productos y otra tabla descripciones y quiero mostrar en los productos con sus descripciones... he intentado en el index1 acceder a la
2006 Jun 24
3
Staying DRY -- can views share partials?
Let''s say I have a "main" controller/view and a "sub" controller/view. If I have defined a partial in "main" for the site header (_site_header.rhtml) can I share it with "sub" or does "sub" have to duplicate it, use a symbolic link to the file, or convert the cool partial into an ugly helper? It would be nice to have a shared placed
2010 Dec 21
5
Rails, Ruby, haml, metaprogramming problem
In HAML I have hundreds of lines like the following: - xyz = someFuncThatReturnsString(''xyz'') and elsewhere %div{''id'' => xyz} The above lines work fine. - - - Attempting to keep things DRY (Don''t repeat yourself) I want to do something like - eval(otherFuncThatReturnsString(''xyz'')) where
2009 Oct 05
11
Unable to install plugins from github
Hi All, My operating system is FC11...I tried to install will_paginate from github directly like this - script/plugin install git://github.com/mislav/will_paginate.git But I get an error saying [ckkashyap@KingCobra test_plugin]$ script/plugin install git://github.com/mislav/will_paginate.git Plugin not found: ["git://github.com/mislav/will_paginate.git"] I have git on my machine - I
2008 Dec 21
1
Form issues : partials + AJAX vs simple JS / separate views + form_fors vs one view and fields_fors
Hi all! I am coding an application that keeps track of request to create college courses. An identified user (logically a faculty member) completes a form indicating the name of the course, the professor in charge, the course''s code, the date and place, the possible coprofessors and TAs and the type of website he or she wants to use as a teaching help (WebCT, Sakai, etc.). I have two
2012 Feb 21
2
API Authentication-Authlogic
Hi all I am using Authlogic gem for authentication.I want an API authentication for external API(XML) call.How to implement this in authlogic .Thanks in advance... -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To
2006 Feb 14
2
Inline list editing with RJS: best practices
I wanted to get the community opinion on the best way to use partials and inline list (<li>) editing. I have a very common scenario where a list is rendered: --- index.rhtml --- <ul> <%= render :partial => ''item'', @collection => @items %> </ul> --- _item.rhtml (simplified) --- <li id="item_<%= item.id %>"> <div
2009 Dec 10
6
(annoying) question: Netbeans vs Rubymine
Hi, I''m don''t want to start another post about what''s the best IDE. Am just considering getting a licence for Rubymine which is 99$ I think. But I don''t know whether it''s really better than Netbeans. My focus is on BDD with cucumber, Rspec and Shoulda. Can anyone tell me his/her experience concering test support in those two IDE''s
2006 Jul 03
2
rjs renders string or partial but not template or action
Hi, I have an rjs file. I only have one controller called called front. I have views called "new_title.rhtml" and "_new_title.rhtml" These work page.replace_html ''title'', ''new title'' page.replace_html ''title'', :partial => ''new_title'' page.replace_html ''title'',
2010 Sep 22
8
ActiveScaffold and partials
I was thinking of doing partials as I did in the simple Rails application I worked on today. But, since I''m using ActiveScaffold, I didn''t find any *.html.erb in the views folder of the Rails application that I need to make my partials! How can I work with partials in ActiveScaffold? Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you
2009 Oct 07
2
"Overriding" association build methods
Hey everyone I have (in a nutshell) two models: Customer and Order. Customer has_many Orders and Order belongs_to Customer. The Order model contains fields such as name, address and phone that mirror the associated Customer''s fields at the time the order was placed. The reason for this is that if the customer changes their details then the order contains the details that were current
2006 Jul 14
2
how to get builder 2.0 to escape attributes in rxml
I am using rxml to produce opml files and need to escape ampersands in the attributes. builder 2.0 docs found at http://builder.rubyforge.org/ show the following xml = Builder::XmlMarkup.new xml.sample(:escaped=>"This&That", :unescaped=>:"Here&amp;There") xml.target! => <sample escaped="This&amp;That"
2006 Jun 19
2
Partials from a master layout?
Hi I am using a ''master'' layout in my project by putting "layout ''main''" in my application controller so that the same layout is applied to every controller and I would like to use partials in the layout file (obeying DRY, of course!) but if I render a partial in the layout then whenever the layout is rendered by a controller the layout looks for