similar to: Where to put partials called from the application layout

Displaying 20 results from an estimated 800 matches similar to: "Where to put partials called from the application layout"

2012 Sep 06
2
choose() function returning anomalous results (zero instead of one)
Hello, (Apologies for length, wanted to get all the relevant detail in that I know of). I've been having a lot of trouble with some code for an inventory analysis problem I was doing, and finally came to the conclusion that it appears that choose() is returning incorrect values. Specifically: ------------- Browse[1]> nn [1] 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3
2006 Apr 12
11
validate_presence_of not working for me
Hi all, I just begun with RoR and going through the Agile development w Rails depot example ATM. I did everything according to the book (i believe), and after 3 hours of googling, reading docs, making sure i did everything correctly i can not make the validate_presence_of() to work - at least not as it looks in the book. My Product model looks like: class Product < ActiveRecord::Base
2006 May 12
2
synchronize blog with Ruby on Rails site?
Hello all, I have the following problem: *) I have a WordPress blog at site x *) I have a Ruby on Rails site, y *) I want to accomplish the following thing: If i post a blog entry into my wordpress blog at x, (in category z), i want it to appear automaticaly at y (in a blog which is... let''s say just a Ruby on Rails something, or alternatively Typo or maybe WP) Suggestions to tackle
2006 May 15
3
Page hit counter?
Hello all, Yet another "don''t reinvent the wheel" n00b question: Is there an ''official'' page hit counter plugin/code snippet/whatever? I would need something like this: - It is possibility to set a constant timespan (say 5 hours). - On every page hit, save away @request.remote_ip and Time.new - The counter gets incremented only if the same IP was here
2006 May 22
2
How to execute time consuming code
Hello all, I have a screen scraping application (go to a lots of sites, extract 10k stuff, integrate the results, put them to DB etc). Now i want to use a Rails application as a frontend to this: The user can push a button which triggers the screen scraping app and view the results (preferably asynchronously, but that does not really matter right now). Questions: - Should the screen scraping app
2006 Apr 28
5
Migrations - use them or not?
Hello, As a rails newbie, i have stumbled upon some tutorials promoting migratons. I have thought, wow, cool and started using them right away. However, now that i am reading the RoR list on a daily basis, i have seen also mails ranging from ''migrations are not always the best'' to ''migrations are evil'' and even ''i would not use migrations even
2006 May 12
21
Drupal vs. Ruby on Rails
Hello all, Maybe the $subj is a little bit weird (i.e. apples vs oranges) but it is a situation i am facing at the moment: We are developing a small web site which will be mostly a CMS (more or less) and my colleagues is arguing for drupal, and i am for RoR. Maybe i can formulate the question in a different way: when to use a CMS (not necessarily drupal but e.g. Radiant CMS) and when to use Ruby
2006 Apr 20
1
Hmm, interesting guy on the RoR list
Hi all, The guy who write some ''interesting'' questions from the email revurikarna@gmail.com (besides that he wants the list members to solve his problems) is highly schizophrenic imho. 3 days ago hi signed his mail ''Kamala'' 2 days ago ''Naveen'' Today, ''Murali''. If you are trying to trick the guys here, change also your
2007 May 06
1
How to submit this form?
Hey all, maybe I am missing the obvious again, but I can not submit the form on buy.com: require ''rubygems'' require ''mechanize'' agent = WWW::Mechanize.new agent.user_agent_alias = ''Mac Safari'' page = agent.get("http://www.buy.com") search_form = page.forms.with.name("searchbox").first p search_form.buttons the last
2007 May 28
2
Clicking image maps?
Hello all, I am trying to click image maps ("area" nodes), and while Perl''s mechanize treats "a", "area", "frame", "iframe" and "meta" tags as links, it seems to me that Ruby''s Mechanize thinks only "a" tags can be links (at least my little experiment, namely: page.links.each {|link| puts link.node.name}
2007 Apr 19
1
Do you have any idea what could be the problem with this script?
Hello all, If I run this script, and observe the output, the results are not there at all (try to do the same in the browser). Any suggestions? require ''rubygems'' require ''mechanize'' agent = WWW::Mechanize.new agent.user_agent_alias = ''Mac Safari'' page =
2007 Apr 20
2
Running script does not return the correct page
Hello all, I have tried to post this yesterday, but noticed I was actually not subscribed yet... Well, here we go again: If I run this script, and observe the output, the results are not there at all (try to do the same in the browser). Any suggestions? require ''rubygems'' require ''mechanize'' agent = WWW::Mechanize.new agent.user_agent_alias =
2006 Apr 24
1
Yet another ''how to sell Rails'' (performance related) question -
Hi all, I have already evangelized my management to use Rails instead of a Java framework for a newly starting projects - they are OK with Ruby, Rails, seems i won the ''will it scale?'' round too, however there is one final round: performance. These guys are really hooked on numbers. (I know, i know, i have been reading DHH''s thoughts on this topic (in short: who
2006 Apr 20
5
Toolbox
Hello my friends Today at FISL (International Forum of Free Software), I''ve had the opportunity to watch a Turbogears presentation. The framework, itself is really weak in comparison to rails, but... When the guy who was making the presentation show the NEW 0.9 TurboGears Toolbox I''ve though: - Isn''t something like that in Rails? Well, after a little googleing
2006 Mar 29
38
Poll: Which distro do you use for Rails/Ruby development?
Good afternoon, I''ve two quick questions for the Ruby/Rails community. 1) Do you use Linux for Ruby or Rails development? 2) If you use Linux, which distro do you normally use to develop? Thank you for your input. :-) -- Posted via http://www.ruby-forum.com/.
2006 Apr 15
1
Right way to pass conditionals to partials
Hi All, I have some partials that need to be rendered a bit differently depending on the context. To make matters worse, sometimes these partials are including other partials, that I''d like to control from the main template. These partials are templates that look similar in different contexts, but have different controls depending on where they''re being rendered. I
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
2006 Mar 09
4
calling partials from public/*.html?
Can I call partials from html files in public? Is this wise? I''ve got a bunch of html files and I''d like to let them have access to pieces of Rails, but I''d like to manage them through Contribute or some such. I *could* wiki them up, but that seems like a lot of work for pages that don''t get updated that often (yearly or so). Thanks in advance! - Dave --
2006 Nov 04
1
Partials shared between multiple controllers
(Just getting started w rails, web app dev for a long time...) I have some partials that are common across multiple controllers. They''re not universal, so they don''t belong to be part of these controllers'' layouts. It appears that I can put them at the root of /views/, and render them using a relative path, like so: <%= render :partial => "./footer"
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