similar to: Layout antics

Displaying 20 results from an estimated 3000 matches similar to: "Layout antics"

2010 Jul 04
2
DRYing Routes
I have a series of ''static'' pages for a site that need named routes in Rails 3. I''m trying to DRY the routes file, but can''t seem to find the proper code. The desired output/code is: match ''/about'' => ''info#about'', :as => :about for each page. My attempt to dry this: %w(about services articles marketing clients).each
2009 Oct 27
14
Authlogic Password confirmation is too short Error. NEED HELP.
Hi: I am using authlogic, and following railscast tutorial. I am running into this error code with the password confirmation. authlogic password confirmation is too short Has anyone experienced this error? I need your help. Thanks in advance for your help.
2009 Jun 22
5
has_many through , or habtm , using form
i think there ara two ways of relate products and categories , basically i want to fix one product(e.g hp dv7....) to some categories (notebook,17"notebooks...) i made a table named categorization(incuding category_id,product_id fields) then in models i write these codes below class Product < ActiveRecord::Base has_many :categories, :through => :categorizations
2009 Apr 03
7
RJS not rendering correctly when mime-type is 'iphone'
I have an iPhone version of my site, and for some reason none of the rjs works when viewing the iPhone version. This happens instead: ActionView::MissingTemplate (Missing template controller_name/ update.erb in view path app/views) The rjs works fine when viewing the site normally, and it worked when viewing the iPhone version prior to upgrading Rails to 2.3.2. Additional info: I have
2009 Sep 24
13
Rails Authentication Tutorial
Does anyone know a good authentication tutorial they can suggest? I''ve tried several restful authentication ones and an authlogic one on RailsCast. But with each one I try, something seems to be missing in the tutorial and I can''t get it to work. I''m new to Rails so it''s possible user error on my part. I''m on Mac OS X 10.5 and I generate all my apps in
2009 Sep 07
11
autoincrement for non-id column
There is a table: execute (<<-SQL) CREATE TABLE "tasks" ( "id" serial primary key, "number" serial, "version" integer DEFAULT 0 NOT NULL, "latest_version" boolean DEFAULT ''t'' NOT NULL, "hidden" boolean DEFAULT ''f'' NOT NULL, "type" character varying (1) NOT
2009 Nov 02
7
*** Quick help with paperclip ***
Hi All, Someone reccomended using paperclip as a way to easily upload photos. Basically I want a quick and easy solution to allow users to add a profile picture. Anyway - I have followed the tutorial on here: http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/ I can add a file, but there isnt anywhere to upload it. I have followed the above tutorial word for word, but i dont
2010 Dec 14
5
Build associated model confusion
I''m new to Rails3, and I''m just trying to get one last thing to work before I call it a night. The situation is the following (please if the code is horrible, just let me know, still learning): I want to log a dive. I might have a new location on that dive at which point I have to create a new Location, and then create the dive. A dive has_one location. A location has_many
2010 Sep 23
8
HowTo; Rails 3, having Tabs that load content via jQuery ... No Page Refesh
Hello, I''m interested in learning the correct/smart approach for implementing a web page with tabs and a content panel... When the tab is clicked by the user the tab''s content is fetched and inserted with jQuery... no page refresh... Example, Facebook, when you click Photos or Events, it doesn''t refresh the browser, just replaces the content with AJAX in the
2009 Oct 01
3
Using Ruby on Rails to edit a script?
Is ROR a good fit if I want to edit and expand on a developed script like RoundCube( http://roundcube.net/ )? I''m planing to edit it for my business as an order/transcript application. If anyone is interested this link is what I want to make. http://handoff.wordpress.com/
2009 May 07
12
is there simpler way to export html within xml
Hi, we''re exporting a lot of html code within xml, our current method works but it''s very messy - far from perfect, is there a better way to do this. an example of our controller code is html = html + "&lt;img src=&quot;/icon/icon_email.gif&quot;
2009 Sep 01
5
Deep nested associations on the same Model
This could be a lot simpler than I think and I''m just missing something obvious! I''m working on a creative collaboration app whereby one user could submit a Story and this can then be forked by another user and worked on seperately. To acheive this I have a has_many association within the same Story model as such: class Story < ActiveRecord::Base has_many
2010 Aug 09
6
configure question and passenger
Greetings all. I have seen a couple of diagrams on the net that look like a computer set up as an nginx server and more than one mongrel server running at once. What is the advantage of having more than one mongrel server running? Is there a good how-to that explains it very well. thanks shawn -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Nov 09
6
Upgrading to snow leopard
Hi All, I''m currently mid-project at the moment, and am scepticle in upgrading to Snow Leopard. If I do, will it affect my current Ruby on Rails set up on my machine?? Cheers -- 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
2010 Oct 13
10
Rails 2.3.8 - What happens to a datetime field between a form being submitted and the controller receiving the params
I currently have a model that simply contains one datetime field: class CreateElectricityReadings < ActiveRecord::Migration def self.up create_table :clocks do |t| t.datetime :time_keeper t.timestamps end end def self.down drop_table :clocks end end If I enter the date string "13/10/2010" into this field its showing up in the controller as
2009 May 13
3
free sms gateway in india
Hi, I am Ramu from India, My rails application needs to have sms feature I searched for couple of rails plugins like sms-fu and all. But it seems that none of them has a support to india mobiles. Please help me in finding out the free sms plugin for rails in india. Thanks, Ramu.
2009 Sep 22
6
Import excel / csv files
Hey, What way is the best to do imports of CSV files?
2010 Nov 16
15
acts_as_taggable, undefined method 'empty?'
I''ve tried out ''acts_as_taggable'', ''acts_as_taggable_on'' and ''acts_as_taggable_on_steroids'' and all of them output "undefined method ''empty?''" with the tag_cloud action. I am following the guides precisely. Yet I can find no references to this error anywhere, so I must be doing something wrong... I am on
2010 Aug 30
10
Trouble with rvm (Ruby Version Manager)
Hi-- Am having trouble with rvm. Successfully installed it, but when I tried to install Ruby 1.8.7, here is the error I got: Paul-Denlingers-MacBook-Pro:~ pdenlinger$ rvm install 1.8.7 -bash: rvm: command not found Tried closing terminal, quitting terminal, opening another tab, etc. but continued to get same error. What to do? Thanks! -- You received this message because you are subscribed
2009 Nov 09
6
Active Scaffold Without Database connection --- Help
Hi Friends, I want to know what are ways or how to use the Active Scaffold without Database connection .... I mean Instead of Database I will have a CSV or Flat file..... Thro Active Scaffold Plug-in how to read this file instead of database.... Kindly Can I have you Ideas and Views..... ASAP..... - Antony -- Posted via http://www.ruby-forum.com/.