On 30 May 2011 04:51, Matt Harrison iwasinnamuk...@genestate.com wrote:
I'm working on a community app that allows the residents of a village to log
and
monitor the traffic going past their houses.
There are multiple locations which have many log entries with a traffic count
and a
time
Hey Josh,
Just as a side note, I think it would be more respectful to list all the
authors of this gem in your gemspec file
Gem::Specification.new do |s|
…..
s.authors = ['Joshua Cheek']
…..
end
Wael
On May 30, 2011, at 2:52 AM, Josh Cheek wrote:
On Sat, May 28, 2011 at 7:32 AM, Josh
If you want to have a 'quick' solution to the average problem why not
do it like this:
a table like:
id | number_of_days | total_cars
At the end of every day you add +1 to the number of days column and
add the number of cars for that day. So as an example after two weeks
it would look like this:
there is some case we have to reuse a helper method to produce an
html output...
in my form view , I am calling a user_helper method fees_string() to
output a specific string based on user membership
%span#academy_analysis_fees
= fees_string( 1, @academy_account_type )
but on changing a
cannot reuse it in the .js.erb
Why not? Seems like that would be the easiest option.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group,
Sad(( is here nobody use postgresql with rails? Or I'm asking
something wrong?
On 18 май, 17:15, sleepwalker krivich.ekater...@gmail.com wrote:
Does Rails 3 support native working withpostgresqlschemas, or I
should try some own solution?
I have some already-createdpostgresqldatabase with 4 or
On Mon, May 30, 2011 at 01:39:26AM -0700, Stefano wrote:
If you want to have a 'quick' solution to the average problem why not
do it like this:
a table like:
id | number_of_days | total_cars
At the end of every day you add +1 to the number of days column and
add the number of cars for
I tried .. but I did it wrong ..
..according to your feedback .. I re-tested .. and it works ..
my error : passing the helper method as a variable %=
@fees_string( 1, @academy_account_type ) % bad !
I just corrected it :
%= fees_string( 1, @academy_account_type ) %
and it works ned
On Fri, May 27, 2011 at 10:00 AM, Sayuj Othayoth li...@ruby-forum.comwrote:
I am using the send_file method to download a file. It works fine on my
local machine. But it's not working on the server - it returns a blank
file.
code:
send_file Rails.root.join('public', 'uploads') +
Hi, I am a new comer with Ruby on Rails
and i am trying to create a controller for the model
and controller is simple
def new
@test = Test.new
end
and model is
Rails gernerate model Test name:string title:string
and it returns me an error: uninitialized constant
TestController::Tests
On May 30, 4:03 pm, joanne joanne0...@gmail.com wrote:
Hi, I am a new comer with Ruby on Rails
and i am trying to create a controller for the model
and controller is simple
def new
@test = Test.new
end
and model is
Rails gernerate model Test name:string title:string
and it returns
Your controller name is plural?
TestsController ?
I think your problem is that you not are following this name convention ...
Sent from my iPhone
On May 30, 2011, at 12:03 PM, joanne joanne0...@gmail.com wrote:
Hi, I am a new comer with Ruby on Rails
and i am trying to create a controller
I have no idea about that. However, I am pretty sure that the name of DB is
correct
and my controller is like this
class LanguagesController ApplicationController\
def new
@language = Languages.new
end
end
and it points out the problem on new
@language = Languages.new
should be @language = Language.new
singular. not plural
On May 30, 2011, at 18:29 , joanne ta wrote:
I have no idea about that. However, I am pretty sure that the name of DB is
correct
and my controller is like this
class LanguagesController
No it is not a plural.
On May 30, 11:34 am, Thiago A Pereira thiagoales...@me.com wrote:
Your controller name is plural?
TestsController ?
I think your problem is that you not are following this name convention ...
Sent from my iPhone
On May 30, 2011, at 12:03 PM, joanne
Hi,
I did try it before as well, it still giving me the same error
On Mon, May 30, 2011 at 12:34 PM, Tom Meinlschmidt
to...@meinlschmidt.comwrote:
@language = Languages.new
should be @language = Language.new
singular. not plural
On May 30, 2011, at 18:29 , joanne ta wrote:
I have
I need to reset the values of the input radio in my view , via Ajax
the view has the following generated html
input checked=checked class= id=user_membership_selection_1
name=user[membership_selection] type=radio value=1 /Selected
Membership/p
input id=user_membership_selection_2
can you post entire error trace? and code of your model as well
tom
On May 30, 2011, at 18:49 , joanne ta wrote:
Hi,
I did try it before as well, it still giving me the same error
On Mon, May 30, 2011 at 12:34 PM, Tom Meinlschmidt to...@meinlschmidt.com
wrote:
@language =
I bought a new server and I was wondering what application server is
the best choice for a typical web application with rails.
I've thought for a long time that the best choice was apache/nginx and
phusion passenger but nowadays I am hearing a lot about thin and
unicorn. I have used passenger a
First, I'm probably not going to describe this problem perfectly
because I am not entirely sure what it happens - please bear with me.
I am getting some weird instability issues with Webrick/Rails 3.1 when
I render views that contain my_route_path's that don't actually exist
in the ERB file.
On 30 May 2011 17:29, joanne ta joanne0...@gmail.com wrote:
I have no idea about that. However, I am pretty sure that the name of DB is
correct
and my controller is like this
class LanguagesController ApplicationController\
There should be no \ on the end of the line. If this is just a
Hi guys, I have a habtm association working properly. My application
consists of both a desktop and a mobile version.
My mobile version is made with jquerymobile and I would like my checkboxes
in the edit form to look like the checkboxes shown in
Hey everybody! I've pushed Rails 3.0.8.rc3.
Hopefully this release candidate takes care of all the outstanding
issues remaining. To see what has changed between 3.0.8.rc2 and
3.0.8.rc3, check out [this link on
github](https://github.com/rails/rails/compare/v3.0.8.rc2...v3.0.8.rc3).
If no
Yeah, I don't think it has anything to do with the asset pipeline - it
is definitely a problem with the routes.
I made a change on purpose to cause the route to fail, and it causes
the effects that I am talking about. Here's some webrick verbiage.
Notice that it took 35147ms to complete the
Here's another one:
ActionView::Template::Error (undefined local variable or method
`edit_user_password' for ##Class:0x0004c829f0:
0x0004c70b60):
51:
52: tr
53: tdPassword:/td
54: td[HIDDEN] (%= link_to Reset Password,
edit_user_password %)
55:
I am fairly new to rails, and have been through a few books, and am
now starting to sketch out an application, however I have run into a
problem with regards to the structure of the app.
I want to build an application that is setup in modules, and examples
of urls could be:
/Sales - frontpage
On Mon, May 30, 2011 at 3:26 PM, Mickiii michael.la...@gmail.com wrote:
I am fairly new to rails, and have been through a few books, and am
now starting to sketch out an application, however I have run into a
problem with regards to the structure of the app.
I want to build an application
On Mon, May 30, 2011 at 2:47 PM, Federico Rota federico.rot...@gmail.comwrote:
Hi guys, I have a habtm association working properly. My application
consists of both a desktop and a mobile version.
My mobile version is made with jquerymobile and I would like my checkboxes
in the edit form to
I did copy and paste those code. anyway, I did found the way to solve the
problem . thanks all :P
On Mon, May 30, 2011 at 12:17 PM, Colin Law clan...@googlemail.com wrote:
On 30 May 2011 17:29, joanne ta joanne0...@gmail.com wrote:
I have no idea about that. However, I am pretty sure that the
I think it's any syntax on the page now. It just happened that routes
were my common mistakes before I tested in a browser, but after some
more what if tests, I have had this problem come up in other
scenarios... so you can ignore my specific errors.
The last time this happened, my computer was
On May 30, 2011, at 6:27 PM, David Kahn wrote:
div class=ui-field-contain ui-body ui-br data-role=fieldcontain
fieldset class=ui-corner-all ui-controlgroup ui-controlgroup-vertical
data-role=controlgroup
div class=ui-checkbox
input id=foo_bar_ids_ type=checkbox value=19
On Mon, May 30, 2011 at 6:27 PM, Jason Fleetwood-Boldt t...@datatravels.com
wrote:
On May 30, 2011, at 6:27 PM, David Kahn wrote:
div class=ui-field-contain ui-body ui-br data-role=fieldcontain
fieldset class=ui-corner-all ui-controlgroup ui-controlgroup-vertical
data-role=controlgroup
Hello,
My database structure consists of Store, Book, BookStore and Address
as below.
class Store ActiveRecord::Base
has_many :book_stores
has_many :books, :through = :book_stores
has_many :addresses
acts_as_mappable :through = :addresses
end
class Address ActiveRecord::Base
Figured it out
Store.joins(:books, :addresses).where(books.isbn =
'9780316346627').within(5, :origin = @addr)
--
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 rubyonrails-talk@googlegroups.com.
To
Anyone in Ottawa (or is relocating to :) Canada looking for a Rails position?
Send me a note for more information.
Cheers,Long
--
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
I tend to agree with David here. Doing this in a test-driven way will reveal
some best practices.
That being said, I think you're likely better off not fighting with Rails
defaults. So, instead of /Sales, just use /sales. Other routes would be:
/sales
/sales/customers
/sales/customers/123
This is the expected behavior, right? There is no method named
edit_user_password, so it's raising an error.
Why is the route to this resource
/trainingdividend/rest/myProfile/editPassword ? And not something like
/passwords/edit or something else that is simpler and more Rails-like? Is
Hi all,
I'm currently in the need to implement a calendar in rails.
It should be able to present a year, month and day view.
The events in these 3 views should be able to be opened, on click, to view
the information and/or edit it (according to restrictions).
The events will belong to users. One
38 matches
Mail list logo