Displaying 20 results from an estimated 40000 matches similar to: "Controller Modules"
2007 Sep 14
0
deal with Controller and Action logic in RJS?
The question is, should we deal with Controller and Action logic in the RJS
file? If so, is it quite "spaghetti-like"?
This is actually for the Agile Web book Shopping Cart example:
If the user clicks "Remove Item" and we do it the AJAX way,
what if we want to first show the cart''s content as
0 x Pragmatic Version Control $0.00
and then highlight
2006 Mar 15
4
New RadRails tutorial using AWDWR book
Hello there,
I am basically a J2EE refugee fascinated with Rails.
I have been using the Spring framework (a lightweight J2EE java framework
with some special characteristics) but I am so impressed with RoR that I am
porting over many applications.
In order to "dive into Rails", of course the second thing to do was get
myself an IDE, and since I''ve been using Eclipse for the
2006 Jan 25
0
Seeking Rails Developers in Bay Area (Marin County)
Hi There,
We have a couple open positions for Rails developers in Marin County,
just across from Golden Gate Bridge from San Francisco. For a
variety of reasons, we''d prefer folks from a Java background, but
mostly we need smart, agreeable, disciplined, and self-directed.
Here''s the full job description. Please use the address at the end
of the message rather than
2006 Jul 02
0
Problem with select, options_from_collection_for_select for selected items
I''m having problems to make the selected works, i''ve been trying with select
and options_from_collection_for_select.
I''ve tried, :selected, :selected_key, :selected_value, and all i can got
from the doc page (
http://rubyonrails.org/api/classes/ActionView/Helpers/FormOptionsHelper.html#M000399
)
and from wiki.
Code:
select(''informacao'',
2006 Mar 28
5
combining two models in one controller/view "set"
I''m going to take another stab at this question (my first one received
no replies):
I have two models:
Author
has_many: books
Book
has_one: author
I have two tables:
authors
id
...
books
id
author_id
...
I let the scaffolding fly and it created the CRUD goodness for each
model, as expected.
However, I want to have only one view/controller "set" for both
models; when I
2008 Oct 14
2
best-practice for programmatically using rxml generated from controller/view? (or 'how can I view a view from a model')
Hey Guys,
Here''s the scenario:
I''ve got vendor-specific XML I need to create and then POST it
somewhere. It sounds easy enough, but I''m running into issues when it
comes time to actually use the XML.
Trying hard to stay within the MVC pattern I:
1) Create a controller which loads the models I''m about to turn into
XML
2) Create an rxml view which renders the
2006 Apr 21
0
model modules
I have a need to subclass models a lot and I thought modules would be
the way to go, but I am encountering nothing but trouble with them. I
seem to be getting stuck with storing an object in the session, but
on the next request it can no longer read the session data and
creates a new session. Any other time I use the model it works just
fine. I read "Agile Web Development With
2006 Apr 23
8
Shattered, the rails-based MVC game development framework
if( you_want_to_make_a_game_with_ruby ) {
http://shattered.hastilymade.com/shattered_ruby.png
http://shattered.hastilymade.com/shattered_ruby.png
http://shattered.hastilymade.com/shattered_ruby.png
Shattered 0.3 has just been released! Inspired by Ruby on Rails, Shattered
is doing for game development what rails has done for web development.
Get it here !
We''ve made this
2006 Jan 16
15
where''d we come from?
I''m curious -- how many of us came to Rails from other branches of the OO
world -- Java, C# -- and how many of us came from the design or non-OO
scripting worlds?
Reason I ask is that I''m finding Rails a blast and very productive, but I
think one reason is that I already cut my teeth on MVC and ORM during two
years of writing apps with J2EE/Struts/Hibernate. And in Javaland, it
2006 Feb 19
2
How far can you get without learning Ruby?
This has been my little experiment for the last few weeks. I jumped straight
into rails after a few tutorials and have been using "Agile Web Development
with Rails" as a reference. I picked up the Ruby syntax from examples which
was not hard to do as I know various other languages. I''ve started 3
database driven web apps and all was going really well. Rails is fun and
2006 Jan 15
0
HABTM relationships and retrieving multiple selects in controller
Hello all,
I have a product table and an option table that are connected to one another
via a join table. These two tables both contain has_and_belong_to_many
relationships with each other.
I am trying to setup a page where I will create a product and add in its
options. I have already populated the options table with data to draw
from.
so, to start, here is the method from my controller:
def
2006 Feb 14
22
Teaching Models to Render Themselves in the Controller
I am trying to teach my models how to render themselves, i.e.
<%= my_model_object.render() %>
Let me explain my reasoning and proposed method before this gets shot
down as anti-MVC.
Let''s say I am writing a contact-management application. I have a
class Contact. I will need to display this class all over the
application. My first choice is to use a partial.
Now I can
2006 Feb 22
0
Rewriting attribute accessors?
I''m new to Rails and so was wondering if the following strategy is a
good idea.
Background: I''m writing a eCommerce application which has a Product
model and an Option model, they are setup with a has_and_belongs_to_many
relationship. The Product model features the ''base'' attributes of the
product and then the shopkeeper *can* add one or more Options that
2014 Jun 09
0
[JOBS] Ruby on Rails Developer Required in Sheffield - Exciting Telematics Company
Ruby on Rails Developer required at The Floow, an exciting new telematics
company that is rapidly expanding (see us here: www.thefloow.com).
The role would involve working within a small Agile team, alongside really
smart people and an expert Ruby team. Our office is relaxed and friendly,
with excellent team support and has a strong emphasis on quality. The role
involves working with Big
2006 Apr 19
24
Why Ruby on Rails
Our company is mainly made up off application developers but we have a
lot of web work coming up so we are deciding which route to take at the
moment. We initially identfied ASP.NET 2.0 with the ATLAS AJAX
framework because of the RAD features, easy to learn etc.
I had read some stuff on ROR and our Boss who is open minded allowed me
to create a sample application with ROR. He was impressed
2006 Mar 29
3
Grouping Controllers into Modules - Doesn''t work!?
Ok, what I want to achieve is:
http://<mydomain>/admin/products
calls app/controllers/admin/products_controller.rb
According to Agile Development with Rails this should work.
I executed the follwing commands:
rails myproj
cd myproj
script/generate controller Admin
script/generate scaffold Admin::Product
this creates app/controllers/admin/products_controller.rb all the views
&
2006 Mar 03
7
Best Practices question regarding views & controllers
Hi List!
I''m reading the Agile book, as many online articles as I can, but
there''s still some things that are just too hard to answer for yourself.
In building my application, I often find myself putting code into my
views of which I am not quite certain it belongs there.
Where do you usually draw the line? Is it okay to, say, loop through an
array of hashes that represents
2006 Jun 11
0
Application construction issue (conceptual)
I was wondering if someone can give me some assistance in approaching this
issue:
First, the background: I have an app that i originally did in PHP that I''m
redoing in Rails. It can be used by multiple clients that have no relation
to each other. The client information is in a database and is determined by
the hostname. Clients then have several users related by client_id. The
2006 Mar 13
4
controllers, models and views in plugins
Hello all,
Is it possible to package controllers, models and views in a plugin? The
tutorials for plugins seem rather sparse at the moment...
I''ve written a form "widget" that I''ve been using as a partial that I would
like to reuse in other projects. I was thinking about making a component
out of it, but I need to be able to access some of the form data that it
2006 May 01
4
When to make a new controller
Hey all,
Ok this is probably a newb question, but I haven''t been programming with
MVC for very long, and I''ve been wondering what the general opinion is,
or best practices, for making a new controller. Like what cases would
you need a new controller for and what cases can you just put everything
into one controller?
Thanks in advance,
Randal
--
Posted via