I am a beginner in Ruby on Rails.
I would like to make the following database model:
Package (has_many packagelines)
Packageline (belongs_to package)
The package line can be one of 3 things: entity, item or service, so I
would like to have a line type with the options entity, item or service.
On Thu, Feb 19, 2015 at 5:57 AM, TTambe tambe...@gmail.com wrote:
Someone suggested that I use local variables like this:
% @pin_albums.each do |pin| %
%= (last_artist ||= nil) != pin.artist ? (last_artist = pin.artist) : ''
% |
%= link_to pin.album, copy_pin_path(pin) %
br/
% end %
On 19 February 2015 at 08:44, Maarten Van Essen li...@ruby-forum.com wrote:
I am a beginner in Ruby on Rails.
I would like to make the following database model:
Package (has_many packagelines)
Packageline (belongs_to package)
The package line can be one of 3 things: entity, item or
On Thursday, February 19, 2015 at 10:25:43 AM UTC, Bruno Oliveira wrote:
td%= link_to article.title, articles_path(article) %/td
That should be article_path(article) (note the singular). articles_path
returns the path for the collection as a whole. It's not expecting an
article so ends
I'm with a problem using link_to.
This is my code:
h1Listing articles/h1
%= link_to 'My Blog', controller: 'articles' %
%= link_to 'New article', new_article_path %
table
tr
thTitle/th
thText/th
/tr
% @articles.each do |article| %
tr
td%= link_to article.title,
Someone suggested that I use local variables like this:
% @pin_albums.each do |pin| %
%= (last_artist ||= nil) != pin.artist ? (last_artist = pin.artist)
: '' % |
%= link_to pin.album, copy_pin_path(pin) %
br/% end %
This gives me the same result as my original code:
The Beatles | Let It
Hi,
I am looking for creating web service to access model. Can anyone help me
out with this because I want to access this using different source for
which I need web service.
Thanks.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To
Hi,
Can I start working on some of the project from now onwards for better
understanding of ideas which will be there this time in order to have
better chances of selection. I am using rails architecture from long time
and very much interested in developing or contributing in rails. Can I know
Yes, the above was a paste from my actual code. I added the parentheses,
but there was no change. I added %= last_artist % and the output was just
each artist again. So it seems that there is something wrong with teh
portion that checks last_artist against pin.artist.
On Thu, Feb 19, 2015 at 9:13
Greetings!
We are seeking a Ruby Ruby on Rails Developer with experience working on
custom coding projects. Our client is customizing their product and they
are adding developers to round out the team. Senior Developer should be a
Ruby 'evangelist' of sorts who keeps up with the latest and
Synechron is seeking a Ruby on Rails Lead Developer to be involved in
building a Ruby on Rails development environment on Windows.
Synechron’s Data Strategy and Architecture group is considered a leading
thought leader for the global financial services industry for defining and
implementing
On Thu, Feb 19, 2015 at 5:28 AM, Puneet Agarwal
puneet.241994.agar...@gmail.com wrote:
I am looking for creating web service to access model.
That's pretty much what Rails gives you out of the box.
What exactly are you having trouble with?
Also:
Please forgive this intrusion, as this question relates to both Rails
and Ruby.
Some of you may know me better as captdowner. I'm emailing the
Ruby-talk list to see if I can find some non-English speakers
(particularly Rubyists, but not a hard requirement).
I have a simple app called
On 19 February 2015 at 13:57, TTambe tambe...@gmail.com wrote:
Someone suggested that I use local variables like this:
% @pin_albums.each do |pin| %
%= (last_artist ||= nil) != pin.artist ? (last_artist = pin.artist) : ''
% |
%= link_to pin.album, copy_pin_path(pin) %
br/
% end %
On Wednesday, February 18, 2015 11:27:47 PM tamouse pontiki wrote:
If I call link_to with helper like you are from rails console (running
pry-rails), I get the same error. But when I put it into a view, it
works
Thanks. Then I'll create an issue ticket for this.
--
I actually ended up doing this which worked:
% last_artist ||= nil %
table id=artist
tr
thArtist/th
th/th
thAlbum/th
/tr% @pin_albums.each do |pin| %
% if last_artist != pin.artist %
tr
td%= pin.artist %/td
td%= link_to image_tag(pin.image), pin
16 matches
Mail list logo