Displaying 20 results from an estimated 80000 matches similar to: "layout of http://apidock.com/rails."
2011 Jan 11
9
Can I omit respond_with.
If I don''t want xml results but only html can I omit respond_with in
some actions?
For example index from:
respond_with(@sectors = Sector.all)
becomes only
@sectors = Sector.all
isn''t it?
--
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
2011 Jun 15
5
rails 3.0.9
Today was expected the new stable rails release 3.0.9 with some fixed,
among all the problem with escape_javascript.
It seems that it see that has not been released, unfortunately.
--
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
2011 Apr 05
6
How to achieve Google Reader-like layout in Rails?
Hi
I''m trying to create a web application with a UI that is fundamentally
similar to Google Reader, in Rails 3 and probably with some Javascript
toolkit (jQuery?). I''m new to web development (my background is in desktop
application development), however, and after some experimentation with CSS
layout I''m frankly unsure of how to achieve the desired layout. Therefore
2012 May 03
3
inheritance with rails.
Hello.
I''ve read about examples on inheritance with rails.
Here is an example:
http://juixe.com/techknow/index.php/2006/06/03/rails-single-table-inheritance/
The way is to add a type field in the table.
So if I have an Animal class with an attribute name, I can inherit
from this class like:
Dog < Animal, Cat < Animal, and so on.
With the type field in the table I can do Dog.all,
2011 Nov 15
3
create e menu for navigation.
Do you know if there is a gem for creating menu navigations?
I''ve tried simple_navigation but it''s too simple.
I like menu navigation of active_admin gem but I don''t know how to create it.
--
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
2011 Jun 12
2
when new rails releases.......
What do you do?
A new release can break an application build on a preceding release
and often an application needs to modify.
So what to do? Fix the rails version in the Gemfile?
In this manner I''ll have a lot of rails versions in the disk.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send
2010 Sep 26
2
Rails 3 - Loading a Subnav with Ajax… Which controller owns a subnav?
Once my Rails 3 app is loaded, a user can click an item which needs to
then load a dynamic subnav.
My thinking is (since it needs to be dynamic) is onClick to make a
jQuery AJAX call to the server and then to inject the HTML response
into a DIV on the page...
What I''d like your advice on is how/where the subnav logic should live
in the rails app, as I don''t have a navigation
2010 Jan 06
0
Built with Rails: http://hpricot.com
People,
I enhanced http://hpricot.com and deployed it to heroku.
I use hpricot.com to build and test various hpricot expressions and
then run them against a variety of websites.
Hpricot.com shows you the resulting html.
Also hpricot.com will render the resulting html.
For some development activities, hpricot.com is useful.
If you have any questions, e-me.
Thanks,
--Dan Bikle
--
You
2010 Dec 25
6
undefined local variable or method?
I have:
<%= form_for(@supplier) do |f| %>
.......
......
<%= render ''sector_categories'', :locals => {:f => f} %>
in _sector_categories partial I have:
<div class="field">
<div id="category_update">
<% for category in @categories %>
<%= f.check_box :category_ids[], category.id,
2012 Nov 26
8
why functional test does not get failure?
The test:
test "should get new" do
get :new, :room_id => @room.name
assert_template(:ne)
end
the template new does not exists but the test does not get failure.
Why?
--
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
2012 May 10
6
Is it suitable using STI?
I have problems on a simple design problem.
I have many companies. Each company have one or more commercial activity.
Activities types are: ecommerce, local unit, television, automatic
vending machines, and so on.
Company may have one or more ecommerce activity or one or more local
unit activity, one ormore vending machines, etc.
How can I model this scenario?
Company has_many ecommerce has_many
2011 Jun 19
10
validates_numercality_of with allow_nil.
In the model I have:
validates :square_meters_public_land, :barrier_meters, :numericality
=> { :greater_than_or_equal_to => 0 }, :allow_nil => true
but if, in the field, on create, I don''t insert a value I have the
error "field is not a number".
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2011 Jan 08
9
options_for_select.
Even reading the documentation I can not figure out what is the
select_tag difference between this:
<% = select_tag (bags [], "options_for_select (bags.collect @ {| bb |
[bb.bag_type, bb.id]},
ruser.bags.collect @ {| ub | ub.id}), {: multiple => true,: id =>
"bags"})%>
and this:
<% = select_tag "bags [], " options_for_select (bags.collect @ {| bb
2012 Aug 29
7
custom js in rails project
Hello, I have a rails project with one controller and one action, as
simple as posible. And I''m trying to put some custom css and js to my
own index.html.erb (not public/index.html.erb), I inluded this on the
layout file:
layout file:
<!DOCTYPE html>
<html>
<head>
<title>Volei</title>
<%= stylesheet_link_tag "application", :media =>
2011 Feb 23
3
validates, what's wrong?
class Category < ActiveRecord::Base
belongs_to :sector
has_and_belongs_to_many :suppliers
validates :sector, :name, :presence => true
As you see I have validates :sector, :presence => true.
When I create a new Category, if I don''t select a sector I have an
error page with the message:
Couldn''t find Sector with ID=
But there is the validates, why I don''t
2011 Nov 12
3
complex form with dynamic fields.
I''ve seen http://railscasts.com/episodes/73-complex-forms-part-1,
part2 and part3.
It seems to be my case.
I have:
Company
has_many :documents
has_many :tenders, :through..........
and
Document
belongs_to :company
Tender
has_many :companies, :through..........
I want to insert documents and tenerds on company creation.
If documents are more than one the user can click "add
2013 Feb 05
2
project proposal.
Hello.
There is someone interested to a collaboration in developing a project
to manage commercial activities?
The target is to learn more on grails and develop an useful application.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
2010 Jun 27
0
Rails layout generator not doing what the documentation sais it should be doing?
Hello,
I''ve just started playing around with the Rails 3.0.0.beta and I came
across some seemingly strange behaviour, where I expected:
"In previous versions of Rails, the rails generate scaffold command
would automatically create a controller specific layout, like app/
views/layouts/posts.html.erb, for the posts controller. However this
has been changed in Rails 3.0. A application
2014 Apr 26
0
Ruby on Rails 4.1 - Random SWF backgrounds in layout
Hi Everyone, this is my first post on Ruby on Rails, I've managed to get up
and running with Rails 4.1 on FreeBSD with Nginx and Ruby 2.1.1.
My issue is this:
I have a folder located at /public/swf/ that contains numerous swf files I
want to load as a background for every page of my site. I've successfully
created a controller with a randomize method and a corresponding view that
2011 Mar 26
2
upload file, read first 10 lines.
I have a csv file and in my controller:
uploaded_file = params[:upload][:csv].read
@rows << FasterCSV.parse(uploaded_file)
I want to put in @rows only the first 10 lines but the read method
reads all the file.
How can I do?
--
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