similar to: How to implement a global partial?

Displaying 20 results from an estimated 700 matches similar to: "How to implement a global partial?"

2006 Jul 13
2
partial_counter
Hi, i was wondering if there was any conventional way to find out (via the partialname_counter, or any other way) which partial is the last in a set of partials ( render :partial => ''name'', :collection => ''@somethings'') so that i can display some kind of variable in the last partial. there''s got to be some neat way to do this? (like setting
2006 Jun 20
4
Searching ActiveRecord sets
Hey all, I''m learning AR and I''m trying to find the best way to search an ActiveRecord set in order to make a conditional statement decision, something like .has_value?(value) but for a multi-dimensional array like an AR set of like 100 rows. I know I can do something like this: results = Table.find_by_sql("...") for result in results if
2006 May 04
1
Ajas Scaffolding and RJS Templates the same thing?
Hey all, I''m just starting in rails and am working on my first app. I need to do inline editing for 2-15 rows of data on a page. I found Ajax Scaffolding here: http://www.ajaxscaffold.com/ And it is EXACTLY what I want in my app. But I''ve also been trying to read a bit up on RJS Templates. Are they basically the same things except RJS is built into rails or is the
2006 May 25
2
Have a quick Gruff Graphing question
I have some graphs and everything is working great, but I''d like to set a minimum height so to speak on the vertical scale. Is there a method to do that with Gruff? I''ve tried looking through the docs but can''t seem to get it to work. So for example, if the highest datapoint in my graph was say 500, is it possible to have the minimum vertical scale on the left set
2006 Feb 06
6
.rjs template doesn''t load?
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060206/cf123b71/PGP.bin
2006 May 03
3
Graceful degrading AJAX show/hide
Ok i''ve done a bit of hunting around and I can''t find much documentation on how ensure an ajax call through an rjs file degrades with javascript off. Essentially, if javascript is off, I want to refresh the page and pass a variable from the controller to the page the user is on. Not use the rjs file. At the moment i have this: <%= link_to_remote("Advanced Search",
2006 Apr 20
21
Can someone please explain Lighttpd + Mongrel + Rails.
I know that Mongrel is a web server that hosts rails applications. But i don''t understand what part Lighttpd (or Apache) has in the setup. I know that you can use Mongrel on its own. What does Lighttpd improve on? Thanks, Chris -- Posted via http://www.ruby-forum.com/.
2007 Apr 03
4
Replacing ERB with Erubis
Hey guys, I''ve been hearing a lot about erubis: http://www.kuwata-lab.com/erubis/ Especially about how much faster it is than straight ERB. In their Ruby on Rails support docs: http://www.kuwata-lab.com/erubis/users-guide.05.html#topics-rails They state that with a few added lines to your environment.rb it will replace ERB completely. I''m wondering if anyone has done this in
2006 Apr 20
4
Small Date Formatting Question regarding datetime_select()
Is there a way to make datetime_select() dropdowns work on a 12hr clock? I need to make a input field that works exactly like the reminders datetime selecton dropdowns in Backpack to populate a datetime field in my DB. i.e in the format: month, day, year ? hour (1-12) minute am/pm. Should I change my database to have a separate column for date and one for time and use date_select()? Can
2009 May 24
9
Mapstraction Sandbox & V2 push
Greetings from the day of rest after a week of Where. It was a great time out here - and there is a lot of interest in the community around Mapstraction. The new Sandbox (http://mapstraction.appspot.com) made surprisingly quick rounds and lots of kudos. It will be a great place to demo Mapstraction and encourage developers. We had a very good discussion about Mapstraction at WhereCamp. Pamela
2009 Jan 21
7
Panning map to a point vs. setCenter
Several map providers have functions to pan to a location, as opposed to the direct setCenter call. Panning animates the move from one point to another. To implement this in mapstraction, I created a panCenter function. I don''t know how to go about committing the change to svn, or who decides whether my naming convention is worthy, but I thought I''d share the function
2006 Apr 29
10
A Good Tutorial on Params and Variables
I have found various posts about instance variables, session variables and parameters (each of which seems to use differnet syntax and have different view on the "best practice") I would like to find a single, reliable source that provides a good overview on all of it. Specifically, I would like to learn how to pass parameters between controllers and how to set session variables so
2006 May 05
3
OT: Require e-mail during sign up process?
Sorry that this thread is a little off topic, but I''m looking for some varying opinions on the subject and I think this group has a breadth of experience on this matter :) A little background info... the registration process for a web application I am developing will be targeting those ages 13+ with the bulk of the users being in the 13-25 age range. We are in the process of developing
2006 Feb 27
8
Change Bit Value To Text When Viewed
Hey All, very simple question for you folks ;) I have a @commutes object that for each record there is a bit value set (0/1) to denote if an accident occurred. What I want to do is have it display "Yes" or "No" when I view the listing of commutes. I can get it to display the bit value just fine with <%= commute.accident %> but how can I get it so that when a record with
2007 May 19
3
Capistrano installation error--Zlib buffer error
I''m trying to install Capistrano. When I run gem install Capistrano --include-dependencies, I get the following error: ERROR: While executing gem ... (Zlib::BufError) buffer error Anyone got any ideas what''s causing this and how I can fix it? I''d really like to use Capistrano to deploy my rails app, but I need to install it first.... Thanks, Myron -- Posted
2009 Oct 23
2
Directions and Driving Distance
An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20091023/4b3edf49/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: Dave_Kerschner.gif Type: image/gif Size: 11121 bytes Desc: not available URL:
2013 Jan 15
1
Permissions when running `dovecot --exec-mail imap`
Hi, I'm running dovecot 1.2.15, on Debian squeeze. /var/mail is owned by group "mail" with permissions "g+rwxs,o=". The mail_privileged_group setting is set to "mail". I am trying to access mail on a remote machine with mutt by tunnelling mutt though ssh and running `dovecot --exec-mail imap` on the mail server. But I frequently get errors in the mail
2006 Apr 21
1
Data access problem in object when using acts_as_authenticated
Hi all, I''m running into this frustrating issue with the acts_as_authenticated plugin and one of the additional fields I added to the users table. I have added a column ''account_type'' to the users table (among several others) which denotes the type of account it is. This stores an integer value that is set by the system during account creation. The value is getting set
2009 Apr 12
3
Last push to Mapstraction v2
Hey everyone - how are things going? I wanted to see what the consensus was on last steps to push out the RC for the new Mapstraction architecture? Timing-wise, I''m speaking at JSConf in 2 weeks and would like to be able to mention the new arch (currently talking about using JavaScript to control immersive virtual worlds, but may try to switch to talk about JS Mapping) - regardless
2006 Jun 29
9
Handling multiple developers making migrations and using svn
Hey all, I''ve run into an interesting scenario that I think some of you might have some suggestions on. I am currently working on a RoR project and we are making full use of the migrations. We are also using a subversion repository for our source control. Now, the problem.... We are both making migrations and checking them into SVN. So, if in our checkout we have migrations up to 10 and