similar to: 2.3.5 guide

Displaying 20 results from an estimated 40000 matches similar to: "2.3.5 guide"

2010 Jul 09
6
deployment question: has anyone deployed w. sqlite?
Hi, I''d like to make a demo version of my app available, but I''m not ready to get into database stuff, yet. Has anyone ever deployed with sqlite (what I used to develop my app)? If so, what hosting service(s) would you recommend? Thanks, Lille -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2010 Sep 18
11
Commenting in an ERB without generating a compiling error
Hello, I have the following: <% @projects.each do |project| %> <tr> . <td><%= link_to ''Destroy'', project, :confirm => ''Are you sure?'', :method => :delete %></td> . </tr> <% end %> How can I safely comment out the TD line above? Do I have to use the =begin way? -- You received this message because you
2011 Mar 02
3
haml to erb - does it work with new html5 tags?
Hi, I wanted to covert all my erb over to haml, but I use HTML5 tags like nav, section, article, etc. Any idea if this is supported by haml? Checked out their site, nothing mentioned there or did I miss something. Sorry noob here. -- 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 Jun 24
3
DRY a named scope
Is there a way to DRY this up a bit? named_scope :has_valid_sysoid, lambda{|sysoid| (sysoid.nil?) ? {:conditions => ["nodesysoid IS NOT NULL AND nodelabel LIKE ''%-to-%''"], :include => [:ipinterface, :alarm]} : {:conditions => ["nodesysoid IS NOT NULL AND nodelabel LIKE ''%-to-%'' AND nodesysoid = ? ", sysoid], :include =>
2010 Feb 15
4
Changing the :path and :url options of has_attached_file in paperclip
Hello, I am using the paperclip plugin to upload images and it works absolutely fine. I intend to save my uploaded images to C:\Application_name\public folder. Accordingly, with some study over the i-net, I changed the :path option of has_attached_file to - :path => "C:/Application_name/ public/:class/:attachment/:id/:style_:basename.:extension" Now, the files are being saved to
2009 Aug 20
7
bulk email solutions
i need to send massive emails to various customers, here 2 solutions i have think: 1- customers = Customer.find(:all, :conditions => "newsletter = 1") customers.each do |c| @email = c.email Mailer.deliver_send_newsletter(@subject, @email, @notice_id) end 2- customers = Customer.find(:all, :conditions => "newsletter = 1") customers.each do |c| addresses <<
2009 Dec 12
2
how to print out content of stylesheets in <style> tag via stylesheet_link_tag
Hi! I''m developing facebook apps with ruby on rails. My connection is really slow. The stylesheets do not load mosts of the time. So i want to print out the content of my .css-files in <style> Tags. Is this possibe with some parameter to the stylesheet_link_tag or an other tag? Greetings from Germany Klaus -- You received this message because you are subscribed to the Google
2010 Nov 05
4
Inheritance alternative
I have to objects with common functionalities and a lot of difference. So I want that each have his own table but inherit the common functionalities from a parent class. How can I do this in Rails ? -- 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 May 13
6
to "loop through" the instance variables of ActiveRecord?
to wrap each instance variable of an ActiveRecord object between "<td>" and "</td>", is there a way to "loop through" them, at least in the debug mode, no matter there is getter methods to get them or not, or at least the ones with the getter methods? Such as <% @stories.each do |s| %> <%= "<tr>" %> <% s.each_property
2010 Aug 13
10
:limit text mysql
I have a rails 3.rc app that I''m developing. I have a text entry in one my models that can sometimes be quite big. I tried setting :limit => 4294967296 on the text column in my migration file but this doesn''t seem to have any effect. The column is till created as a TEXT column rather than MEDIUMTEXT or LONGTEXT. Does anyone have any idea why this might be happening? Is there
2011 May 23
3
Passing a period as part of an id in show action
I am trying to do the following in a RESTful manner: I have a web service that accepts an id to deliver a particular record. Unfortunately, the id that the client will have is not the usual database sequence number. This mostly works, though, and the url looks something like: http://myservice.com/controller/the_id.xml That is handled by the "show" action. Unfortunately, some of
2010 Dec 16
12
Capybara + radio buttons
How do I select a radio button when both id and name are identical?: <input type="radio" name="BILFPB.bilPremieUppgifterFI.under24" tabindex="13" value="J24" checked="checked" id="forare">Ja <input type="radio" name="BILFPB.bilPremieUppgifterFI.under24" tabindex="14" value="N24"
2011 Jan 02
6
Database Design
Hello, I have a user table that stores their username, email address, and password. (along with salt, etc) However, now I want to have more complex information associated with each user (address, etc). I''m no DBA expert, so in terms of performance, which is better: - A user table that has all the fields in it (Username, Email, password, country, state, zipcode, etc) - A user table that
2011 Oct 25
6
Date formats
Just realized I have a nice problem. using Postgresql... When I save something via Rails to the table it''s saved with a GMT offset (so 12:00 becomes 16:00) But the database is configured to save everything as GMT. Which means -- when I query it via SQL it''s coming back as now + 4 hours instead of just plain now. Where/How do I get this back in sync? -- You received this
2010 Oct 20
7
How can I render a template outside of a controller in Rails 3?
Hi All, I can''t seem to render a template outside of a controller in my Rails 3 application. The googling I''ve done has been helpful, and I eventually found some useful info at http://www.swombat.com/rails-rendering-templates-outside-of-a-contro. However, this seems to be broken in Rails 3. Does anyone have any ideas how I can fix this method or perhaps know of a better
2008 Jul 10
6
Uppercase all row columns
Hi. I have to convert the contents of all columns to uppercase before creating a row. Is there an easy way to accomplish this so I don''t have to go one column at a time and upcase! it? Thanks. Pepe --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,
2011 Mar 29
2
recaptcha displaying weirdly
Hi List, I''ve followed and read several guides for getting recaptcha working with a site but I keep coming across this problem. The recaptcha images look...weird: This image is taken with the "white" theme, however the sandard one is exactly as weird. I can''t work out what is causing this: http://www.mattharrison.org/images/recaptcha-weird-look.JPG Any tips
2010 May 24
5
top 10/most popular lists
What''s the best way to handle views that show the top 10/most popular/ Recently updated/most commented type listing? Should I have a separate model that is populated with records from other models by a background job or should I need to use some sort of caching? Perhaps both? Thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 Mar 31
3
can i switch to rails 2.3.5 and run a rails 2.3.5 code??
Hi all, i have installed rails 3 using RVM . the prob is now i have two parallel projects where one is in 2.3.5 and another is in rails3. i use Mac o x 10.6.3 mysql :Server version: 5.1.56 MySQL so can i switch in between rails3 and rails 2.3.8?? this is my gem list... actionmailer (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5) actionpack (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5)
2010 Apr 20
4
Can I access another apps mysql database with my rails app?
Sorry if the answer is obvious (nube alert) but would it be possible for me to access the DB of a php app using a mysql database, from within my Rails app? I want to install my (php) forums in forum.site.com, and my main site (using rails) will be at the root, site.com - so could I list the latest forum thread, in my Rails side of the site, by simply accessing the mysql database directly? Guess